September 1, 2016 at 6:52 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87038
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, RobertSeptember 1, 2016 at 7:24 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87041
EDIT: 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 #87063
HristoParticipantSeptember 2, 2016 at 9:46 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87072
Hello 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.
CheersSeptember 7, 2016 at 9:27 am Pasting reformatted content into Editor: Possible Bug in Firefox/Safari #87158
You must be logged in to reply to this topic.