Opened 5 years ago

Closed 5 years ago

#11699 closed Bug (duplicate)

Text comming from "Paste from word" to ckeditor add some style attribute to first line

Reported by: ramaswamy Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: Cc:

Description

Hi All,

I pasted some text using "paste from word", here the data is pasted as it is in the word file but when i click on the ok button the style attribute is added to first line of the document in source

I attached word file ckeditor UI page and source file.

Attachments (4)

PastefromWord.png (35.1 KB) - added by ramaswamy 5 years ago.
ckeditorUI page.png (40.3 KB) - added by ramaswamy 5 years ago.
CKeditor_source.png (44.0 KB) - added by ramaswamy 5 years ago.
PasteExample-1.docx (14.0 KB) - added by ramaswamy 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ramaswamy

Attachment: PastefromWord.png added

Changed 5 years ago by ramaswamy

Attachment: ckeditorUI page.png added

Changed 5 years ago by ramaswamy

Attachment: CKeditor_source.png added

Changed 5 years ago by ramaswamy

Attachment: PasteExample-1.docx added

comment:1 Changed 5 years ago by Jakub Ś

Keywords: HCL removed
Resolution: duplicate
Status: newclosed
Version: 4.3.1

This issue has already been answerd in #11667 and #11683. This is how browser see HTML and what it passes to editor. Editor can't make guesses that if paragraph is indented so should the list be.

This is what browser sees:

<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;mso-bidi-font-size:9.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;" lang="EN-US">This
is the Heading here<br style="mso-special-character:line-break">
<br style="mso-special-character:line-break">
</span></p>

<ul style="margin-top:0cm" type="disc"><ul style="margin-top:0cm" type="circle"><li class="MsoNormal" style="mso-list:l0 level2 lfo1;tab-stops:list 72.0pt"><span style="font-size:12.0pt;mso-bidi-font-size:9.0pt;font-family:
      &quot;Calibri&quot;,&quot;sans-serif&quot;" lang="EN-US">What is your name<br style="mso-special-character:
      line-break">
      <br style="mso-special-character:line-break">
...

Look closely - paragraph has margin-left:36.0pt while list doesn't.

This issue and similar issues will not be continued.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy