Changes between Initial Version and Version 1 of Ticket #14554, comment 1
- Timestamp:
- Mar 30, 2016, 12:26:53 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14554, comment 1
initial v1 1 1 This issue is in fact a duplicate of #9964. 2 2 3 1. I was very surprised to see that pasting from your word document doesn't work at all in Firefox and Chrome. I will, need to investigate this and update this post. 3 Once you set: 4 {{{ 5 pasteFromWordRemoveFontStyles : false, 6 pasteFromWordRemoveStyles : false 7 }}} 8 you will get same results in all browser's. 4 9 5 2. Let's focus on IE/EDGE where pasting works. The code that gets pasted is:10 Let's focus on IE/EDGE. The code that gets pasted is: 6 11 {{{ 7 12 <p style="margin: 0cm 0cm 8pt;"><span lang="EN-IE" style="line-height: 107%; font-family: "Times New Roman","serif"; font-size: 18pt;"><font color="#000000">Apple is good for health</font></span></p> … … 13 18 }}} 14 19 15 Now, from what I have checked the middle line works but rest don't. Why is that? If you look how styling in CKEditor currently works and at the fo t names [http://docs.ckeditor.com/source/plugin39.html#CKEDITOR-config-cfg-font_names definitions], you will know that any style in order to be reflected in dropdown has to match itexactly. It has to be 1:1 match. [[BR]]20 Now, from what I have checked the middle line works but rest don't. Why is that? If you look how styling in CKEditor currently works and at the font names [http://docs.ckeditor.com/source/plugin39.html#CKEDITOR-config-cfg-font_names definitions], you will know that any style in order to be reflected in dropdown has to match dropdown's style definition exactly. It has to be 1:1 match. [[BR]] 16 21 There is {{{Georgia, serif}}} in font definitions and the same in middle paragraph so there is a match. The other two don't match but if you alter third line to {{{Comic Sans MS, cursive;}}} you will notice that it works too. Please try code below: 17 22 {{{ … … 25 30 ---- 26 31 27 I'm closing this ticket as a duplicate because I think it is covered by #9964 fully. If you don't agree, please leave a comment. As for pasting in Chrome and FF, I will need to make further research.32 I'm closing this ticket as a duplicate because I think it is covered by #9964 fully. If you don't agree, please leave a comment.