Skip to content
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

p tags instead of divs #14

Closed
AlexLittlejohn opened this issue Sep 18, 2013 · 1 comment
Closed

p tags instead of divs #14

AlexLittlejohn opened this issue Sep 18, 2013 · 1 comment

Comments

@AlexLittlejohn
Copy link

Starting with an empty editor and then inserting content will cause it to use <div> tags instead of a <p> tags. This seems to break the block level functions
Also pressing enter after a heading tag will do the same thing.

Possible solution is using a Mutation Observer to be notified when a new child element is added and if its a <div> change it to a <p>.

@daviferreira
Copy link
Member

Hey Alex, i have added a event listener for when the user presses the enter key so it will always create a paragraph. Could you please try it out?

Thanks!

OmniaGM pushed a commit to OmniaGM/medium-editor that referenced this issue May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants