[RSS Feed/News] Froala: Copying to text editor duplicates line-breaks

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
XenForo uses Froala's default Enter option $.FroalaEditor.ENTER_P (https://www.froala.com/wysiwyg-editor/examples/enter, https://www.froala.com/wysiwyg-editor/docs/options#enter) but sets the margin of "p" elements to 0.

Therefore, when copying text from XenForo's Froala to a text editor (Notepad, Sublime Text, ...), all line-breaks are duplicated. I guess that's because the text editor sees the "p" elements and thinks that for an appropriate representation of paragraphs...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom