[MAGNOLIA-4051] Copy from word not cleaning up content properly, results in layout issues Created: 07/Feb/12 Updated: 29/Mar/12 Resolved: 28/Mar/12 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | fckeditor |
| Affects Version/s: | 4.5.1 |
| Fix Version/s: | 4.5.2 |
| Type: | Improvement | Priority: | Critical |
| Reporter: | Boris Kraft | Assignee: | Federico Grilli |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
If you paste text into STK's FCKEditor that apparently has some layout/styling info (Rich text), and use the "copy from word" button, and select all options to remove styling from pasted text, the result will still be layout issues. This is tested with betaV, but we have the same issue on our corporate site. To generate the text to paste I have used "Littleipsum" a small tool that generates lore ipsum text. I have often encountered this issue when given a demo, where obviously I need to show how to create page components, and pasting content is the fastest way to generate a result. To me it seems that the "paste from word" function is not working properly. See screenshot of the resulting layout, where the text is much smaller than it should be. On a related note, when creating a new text/image, it seems there is an invisible character in the text. When I delete this space, and just copy text into FCKeditor, the resulting text will not be shown at all. |
| Comments |
| Comment by Jan Haderka [ 14/Mar/12 ] |
|
First only investigate if upgrade of FCK will fix the problem and what are the side effects of such update. |
| Comment by Federico Grilli [ 27/Mar/12 ] |
|
Attached two screenshots with ms word copy&paste, with and without styles removed. FCK functionality seems to work correctly in the sense that extraneous styles are removed when selecting Remove styles definitions in the pop dialog. However, I was able to reproduce the issue by reusing the same paragraph/component. In that case, it seems that pasting a new text results in FCKEditor wrapping it in a <div> element which in the case of STK applies a different style, namely one where font-size is smaller than in text wrapped in <p> element (the default behavior). I have a feeling I already dealt with a similar/related issue and maybe there's a reason why the text is wrapped into a div but have to dig into jira. |
| Comment by Federico Grilli [ 27/Mar/12 ] |
|
My feeling must have been wrong, because I could not find any issue related to that, apart from
Err, maybe the first two options are silly because one could argue: what's the point of having a rich text editor if you are removing all formatting by default? The fourth option is my favorite, of course. |
| Comment by Federico Grilli [ 28/Mar/12 ] |
|
I would do nothing here and just add a note in the FCK module documentation about the "issue" with Paste from Word as I stated in my previous comment. |