#2178: Pasting contents in Safari outputs <span class="Apple-style-span"> tags ---------------------------+------------------------------------------------ Reporter: Tarto | Type: Bug Status: new | Priority: Normal Milestone: | Component: General Version: FCKeditor 2.5 | Keywords: ---------------------------+------------------------------------------------ DESCRIPTION[[BR]] Pasting contents in Safari outputs <span class="Apple-style-span"> tags.[[BR]] Tested with Safari 3(3.1.1) under MacOS X(10.4.11).[[BR]] [[BR]] HOW TO REPRODUCE[[BR]] 1. Using MacOS/Safari3, go to the demo page at [http://www.fckeditor.net/demo][[BR]] 2. Apply a H1 style to the only line[[BR]] 3. Place the cursor at the end of the line and press Enter[[BR]] 4. Copy any contents from the first line to the buffer[[BR]] 5. Place the cursor on the second line and paste[[BR]] The source now contains the infamous <span class="Apple-style-span"> tag.[[BR]] [[BR]] RANDOM COMMENTS[[BR]] 1. It does not occur if the configuration parameter ForceAsPlainText is set to true[[BR]] 2. Otherwise, it seems to happen regardless of the pasting method (paste button/keyboard shortcut, direct paste/paste dialog/paste from word dialog)[[BR]] 2. Tested with FCKeditor 2.5 and 2.6. I have not tried other versions[[BR]] 3. There have been several related tickets (52, 55, 569, 1701, 2113) dealing with this span tag issue, but I have not found any solution that could apply to the present problem:[[BR]] - 52, 55, 569 were fixed with changeset 774 but this did obviously not impact this issue[[BR]] - 1701 is related to another keyboard shortcut, plus it clearly states in one of the comments that META-V works as expected[[BR]] 4. 2113 contains an interesting patch (changeset 1951) which I downloaded and installed. The patch itself "partially" solves the problem: switching to source mode displays the unwanted tags, but then switching back to preview mode and finally back to source mode again (or saving) indeed removes all those tags. However, until the user goes through all those manipulations, the tags will still be there and thus hinder some of the functions (for instance, applying a H6 format will not seem to have any effect as it will be overridden by the span). I thought about reusing the portion of code in the modified fckdocumentprocessor.js that removes all those span tags, to apply it after each pasting operation. However I made many tests but could not find where and how to use it, as I do not understand the event/keystroke catching model well enough. Therefore I do not know whether I am on the right track or not[[BR]] [[BR]] Thank you
-- Ticket URL: <http://dev.fckeditor.net/ticket/2178> FCKeditor <http://www.fckeditor.net> The text editor for Internet ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ FCKeditor-Trac mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fckeditor-trac
