jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Editor › Pasting reformatted content into Editor: Possible Bug in Firefox/Safari
Tagged: angular editor, bootstrap editor, javascript editor, jquery editor, jqwidgets editor, jQxEditor
This topic contains 4 replies, has 2 voices, and was last updated by Hristo 8 years, 8 months ago.
-
Author
-
September 1, 2016 at 6:52 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87038
Hello!
We noticed some strange behavior when pasting formatted text into the jqxEditor widget (versions 4.1.2 in our application and 4.2.1 on your demo site, others not tested) in Firefox (MacOS X, Win 7) and Safari (MacOS X). When I copy formatted text from applications like Word or Mail or just any other HTML content and paste it into Firefox the content gets pasted two times. When I do the same thing in Safari the content shows up for a split second and vanishes (the console says “NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.”).
I can reproduce this on your demo site (http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxeditor/index.htm). This does not happen in Chrome. When the pasteMode property is set to „text“ the pasting works normally. I did not spend a support ticket on this issue since the text mode is okay for us, but maybe someone else is experiencing the same problem.
Cheers, Robert
September 1, 2016 at 7:24 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87041EDIT: Sorry for posting double, but it seems not so reproducible anymore in Firefox (see this fiddle: http://jsfiddle.net/yxuesquz/2/). Pasting the blue text below results in plain text pasting even in html-Mode in Firefox, but the possible bug still exists in Safari (9.0.3).
September 2, 2016 at 5:50 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87063Hello Robert,
Thank you for this feedback.
Please, take a look at this temporary solution.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comSeptember 2, 2016 at 9:46 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87072Hello Hristo, thanks for your help!
The use case is that a user can paste possibly formatted text from a Word document or e-mail-App. Preserving structure (line breaks and paragraphs) is more important in this case than preserving the format, since most of our users wouldn’t even perceive common body copy from a document as particularly formatted. So we will just use your textarea widget.
Cheers
September 7, 2016 at 9:27 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87158Hello Robert,
We create work item for this case.
Thank you for your understanding.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.