Opened 12 years ago
Closed 8 years ago
#9616 closed Bug (fixed)
PasteFromWordRemoveStyles option doesnt work with ASP.NET control
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | |
Keywords: | Cc: |
Description
- Open FirstUse.aspx ASP.NET sample
- Set
PasteFromWordRemoveFontStyles="False"
andPasteFromWordRemoveStyles="False"
- Run the sample
- Paste contents from attached word file
Result: Notice that table background is not pasted but all the font styles are.
Possible cause:
If you see HTML of sample page you will notice that ony "pasteFromWordRemoveFontStyles" : false
is present.
This is happening because (can be checked in Visual Studio) CKEditor ASP.NET control has PasteFromWordRemoveStyles set to false by default while in JavaScript editor this value is set to true.
Because PasteFromWordRemoveStyles="False" is treated by control as default value it is not being included in resulting JavaScript. Then default property which is set to true from config is being used instead. This result in missing styles.
To work around to the problem just put in ckeditor/config.js
config.pasteFromWordRemoveFontStyles = false; config.pasteFromWordRemoveStyles=false;
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | word_table.docx added |
---|
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
Component: | Server : ASP.Net → Plugin : Paste from Word |
---|
comment:3 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
Fixed with new Paste From Word plugin in 4.6.0.