-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent <p> wrapping #149
Comments
@schnittchen apologies it's been so long, but we're trying to go back and cleanup some issues. Are you able to help us determine if this issue still happens? |
And if it still happens, tell us on which version you are testing. Also, give some precision on which browsers your problem happens |
I won't find time soon. Feel free to ping me some time. |
Looks like this is still an issue: when the initial text value is |
Thanks for the clarification, looks like this is yet another issue of weird browser handling of contenteditable content. I've had thoughts about trying to enforce that there can only be only block elements as direct children of the contenteditable This is definitely something the medium-editor code could try to fix-up if anyone wants to give it a shot. |
As reported by @yoshokatana in #34
paste: {
forcePlainText: false,
cleanPastedHTML: true,
cleanTags: [
'meta',
'script',
'style',
'img',
'object',
'iframe'
],
cleanReplacements: [
[/<p>/ig, ''], // this isn't actually getting rid of them?
[/<\/p>/ig, '']
]
} |
By the by, if I have |
Hi,
When the container div contains only, say, a single line of text, the text will jump as soon as the User moves around using cursor keys. The reason is that the line gets wrapped in a
<p>
. This does not happen when I make the initial content end in<br/>
.The text was updated successfully, but these errors were encountered: