Opened 12 years ago

Closed 7 years ago

#9331 closed Bug (fixed)

Pasting text creates simple Caesar cipher

Reported by: Lars Vising Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.5.3
Keywords: IE Cc:

Description

When pasting text from a Microsoft word document some text is scrambled in a rather interesting way. The attached file contains the word 'rubrik' on the second row. When pasting the whole contents of the file the word 'rubrik' appears as 'qtaqhk'. Rather funny as q preceeds r and t preceeds u but the last character 'k' is not converted.

Attachments (1)

ckBugWord1.docx (14.0 KB) - added by Lars Vising 12 years ago.

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by Lars Vising

Attachment: ckBugWord1.docx added

comment:1 Changed 12 years ago by Lars Vising

This will happen at least when pasting text using IE9. Editing the file will produce various changes in the word 'rubrik', editing the word will produce different results. Sometimes you can expect to get 'qtaqhk' or parts of it or just some character instead of the whole word.

Version 1, edited 12 years ago by Lars Vising (previous) (next) (diff)

comment:2 Changed 12 years ago by Jakub Ś

Keywords: IE added
Status: newconfirmed
Version: 3.5.3

Problem has been reproducible in all versions of IE from CKEditor 3.5.3 and first got broken in rev. [6585]

Browsers see this element as:

<p style="margin: 0cm 0cm 0pt 36pt;" class="MsoListParagraphCxSpFirst"><span lang="SV"><font face="Calibri">rubrik<o:p></o:p></font></span></p>
  • Till rev. [6584] it was pasted as indented paragraph
  • From rev. [6585] - [6615] two indented elements (also this ) were pasted as empty list:
    <ul>
    	<li>
    		&nbsp;</li>
    	<li>
    		&nbsp;</li>
    </ul>
    <p style="margin-left: 36pt;">
    	&nbsp;</p>
    
  • From rev. [6616] this element is pasted as
    <ol style="list-style-type: lower-alpha;">
    	<li value="211152199">
    		&nbsp;</li>
    </ol>
    

From this revision in WYSIWYG you can see qtaqha (which can't be selected) and list next to it (you can see it if you look at elements path)

comment:3 Changed 12 years ago by Jakub Ś

@lavi how are you making this word in docx file?
This is just indented word or does it have some additional styles?

comment:4 in reply to:  3 Changed 12 years ago by Lars Vising

Replying to j.swiderski:

@lavi how are you making this word in docx file?
This is just indented word or does it have some additional styles?

Yes, it's just indented word, at least that was my intention when making the file. I tried to reproduce the file withoud 'dummy' words and transcribe the word 'rubrik' in english before submitting the bug report - but then the bug did not appear in the new file. Some minor detail in the docx file produces the error?

Last edited 12 years ago by Lars Vising (previous) (diff)

comment:5 Changed 12 years ago by Jakub Ś

Browser sees your docx as:

<p style="margin: 0cm 0cm 0pt 36pt;" class="MsoListParagraphCxSpFirst"><span lang="SV"><font face="Calibri">rubrik<o:p></o:p></font></span></p>

and after just indenting the text you get:

<p style="margin: 0cm 0cm 10pt 18pt;" class="MsoNormal"><span style="mso-ansi-language: PL;" lang="PL"><font face="Calibri">test<o:p></o:p></font></span></p>

Problem is that class="MsoListParagraphCxSpFirst" is needed to reproduce this problem and I was not able to get it.

comment:6 Changed 12 years ago by Jakub Ś

@lavi any chance for any piece of information on how this element can be created or was this one time "accident"?

comment:7 in reply to:  6 Changed 12 years ago by Lars Vising

Replying to j.swiderski:

@lavi any chance for any piece of information on how this element can be created or was this one time "accident"?

I have not been able to reproduce the document, so it can be considered a one time accident. The creation of the document involved adding and removing a table and removing empty bullet points. Also I have noticed that upon page refresh the word rubrik will render correctly in IE

comment:8 Changed 10 years ago by Frederico Caldeira Knabben

Component: GeneralPlugin : Paste from Word

comment:9 Changed 7 years ago by Tade0

Resolution: fixed
Status: confirmedclosed

Fixed with new Paste From Word plugin in 4.6.0.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy