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

Provide option to use <br> on return instead of <div> / <p> #13

Open
robert-virkus opened this issue Apr 24, 2021 · 0 comments
Open

Provide option to use <br> on return instead of <div> / <p> #13

robert-virkus opened this issue Apr 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@robert-virkus
Copy link
Member

By default paragraphs / divs are inserted when the user presses return.

There should be an option in HtmlEditor to change this behavior.

Use execCommand("insertBrOnReturn", false, true); - but this does not seem to be supported on Chrome / Android.
Possibly also execCommand("defaultParagraphSeparator", false, "p");

@robert-virkus robert-virkus added the enhancement New feature or request label Apr 24, 2021
robert-virkus added a commit that referenced this issue Apr 24, 2021
so far it works fine on the desktop
but not at all on the mobile.
Also tried with insertBrOnReturn and
defaultParagraphSeparator without success.
robert-virkus added a commit that referenced this issue Apr 24, 2021
Previously I somehow managed to delete the <body> tag with the
onload event hook....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant