-
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
main wrapping element #251
Comments
Just looking further in to semantic HTML guidelines... When the editor element is a block like a Relevant Links: |
I want! I want all p tags and all divs disabled, and only br tags when hitting Return. |
This would also be useful if the containing element were itself a paragraph, e.g.
...which is sort of how I'm using it right now. (It still tries to insert extraneous |
Very interested on seeing this behavior too. |
Interesting... using |
This behavior is totally different in Firefox. It seems Firefox doesn't even create new Firefox requires a block wrapper to create <div class="editable">
<p>
This is just a demo
</p>
</div> |
@alvarotrigo Thanks for the tip! |
I am also interested in this feature and would love to see some progress here. |
Same. I don't want wrapping of anything, maybe just standard |
Anyone found a solution for this? |
I also agree that have < br> for new lines by default is better. Generate new < p> for every line break create problems. |
In the medium-editor.js file, around like 6822, or search this and replace that last p tag with blank.
|
Thanks ghost, apparently firefox fixed it: |
Any updates on this ? How do you get brs instead of ps ? |
By default, the editor will use
<p>
tags to contain content and support carriage returns, etc. Alt., thedisableReturn
option can be used to force plain text, thereby removing all wrapping<p>
tags.I have a requirement to support formatting inside block elements like Headers and Blockquotes, but I need to also support carriage returns and do not want
<p>
tags to be used.Standard:
Requirement:
Perhaps an option like
disableParagraphReturn: true
is what I am looking for - where it would use<br>
's instead of<p>
's when set totrue
.Another option may be to simply consider the element that has been used for the editor - where it exhibits a behavior without an option being passed (e.g.
<div>
means that<p>
tags will be used;<h1>
..<h6>
,<blockquote>
will use<br>
's).I will start to investigate how this may be implemented if it is a feature that others may want.
The text was updated successfully, but these errors were encountered: