Opened 9 years ago
Closed 9 years ago
#28016 closed defect (bug) (fixed)
Update the 'paste' TinyMCE plugin
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | has-patch |
Focuses: | Cc: |
Description
TinyMCE 4.0.23 was just released and includes some fixes for the paste plugin:
- Add logic so that valid a tags are not stripped by WordFilter: described here and here.
- Fixed issue with the paste_webkit_styles option so is disabled by default since it might produce a lot of extra styles: https://github.com/tinymce/tinymce/commit/3c3e9963ee5a660b992aa83ad5a11fdeff9aef9a. This also keeps inline styles that were added by the editor when doing "local" copy/paste inside TinyMCE.
Attachments (1)
Change History (11)
#2
@
9 years ago
Testing 28016.patch:
I don't have a Mac (yet) so I can't test any of the 'Webkit' issues :(
- 'Footnotes' and 'Endnotes' work as expected from Word 2013 to WP 3.9
- (Note: 'Footnotes' and 'Endnotes' are not hyperlinked, future iteration may implement this)
- Font colors only work using IE11, do not work with Google Chrome 34, Chrome Canary 36 or Firefox 29
MS Word 2013 HTML Clipboard Source:
<!--StartFragment--> <p class=MsoNormal><span style='color:red'>Red text<o:p></o:p></span></p> <p class=MsoNormal><span style='color:#0070C0'>Blue text<o:p></o:p></span></p> <p class=MsoNormal>Normal text<o:p></o:p></p> <!--EndFragment-->
IE: WP 3.9 'post' source after pasting from Word 2013
<p style="margin: 0cm 0cm 8pt;"><span style="color: red;"><span style="font-family: Calibri;">Red text</span></span></p> <p style="margin: 0cm 0cm 8pt;"><span style="color: #0070c0;"><span style="font-family: Calibri;">Blue text</span></span></p> <p style="margin: 0cm 0cm 8pt;"><span style="color: #000000; font-family: Calibri;">Normal text</span></p> <p style="margin: 0cm 0cm 8pt;"><span style="color: #000000; font-family: Calibri;"> </span></p> <p style="margin: 0cm 0cm 8pt;"><span style="color: #000000; font-family: Calibri;"> </span></p>
Firefox: WP 3.9 'post' source after pasting from Word 2013
Red text Blue text Normal text
Chrome: WP 3.9 'post' source after pasting from Word 2013
Red text Blue text Normal text
#3
@
9 years ago
I'm not really familiar with the other issue described here, but can confirm that after pulling the latest from trunk and applying 28016.patch (and forcing it to load paste.min instead of the archive), the issue with footnotes and endnotes is resolved for both of my test documents (the crafted sample and client real-world sample). Thanks!
#4
@
9 years ago
Is there a reference I can use to learn more about the other issue described here, and what would be helpful for me to test and report about? I'd love to help get this patch approved and merged!
#7
@
9 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 28568:
With the WebKit improvement we can go back to stripping all inline styles as in 3.8.
Alternatively we can keep only 'color' by setting
'paste_webkit_styles' => 'color'
. In that case most of the pasted content will have inline styles that can be removed by selecting the content and clicking the "Clear formatting" button.