Open xmedeko opened 4 years ago
We’re closing this issue due to inactivity. If you’re still experiencing this problem on the latest version of our editor, please feel free to reopen the issue and let us know. You can find details on the latest updates here: Froala Editor Changelog.
@ilyaskarim Problem is still in Froala 4.3.0, try in in JSFiddle, see the link above. Cannot reopen the issue, please, reopen it.
We are reopening the issue for further investigation.
Expected behavior.
If
htmlAllowedTags
does not contain some "enter" tagsp
,div
orbr
, then these tags should be replaced with theenter
tag.Actual behavior.
All tags not in
htmlAllowedTags
are removed.Steps to reproduce the problem.
Following https://github.com/froala/wysiwyg-editor/issues/3276#issuecomment-463690334 point 2) if
div
is not inhtmlAllowedTags
, then:editor.html.set()
squashesdiv
into single line,div
squashes paragraphs into single line. See https://jsfiddle.net/ogzpe3uw/Editor version.
3.1.0
OS.
Windows
Browser.
Chrome
Ugly hacky workaround
Replace all
div
byp
(or depending on your configuration) and hookpaste.beforeCleanup
event to thepasteBeforeCleanup() function
: