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

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,979
Points
823

Reputation:

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

Continue reading...
 
Status
Not open for further replies.
Top