Hi,
I’m new to XWiki but I really it already. I’m using the office importer extension with LibreOffice as well in a sub-wiki and it’s working pretty well, including the filter styles feature.
However, whenever I paste content from Word or a Google Doc into CKEditor and switch to source view, it preserves the styles like font, line-height, etc.:
(% style=“line-height:1.2; margin-top:13px” %)
[[(% style=“font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 700; font-style: normal; text-decoration: none” %)Configuration(% style=“font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 700; font-style: normal; text-decoration: none; white-space: pre” %)** **(% style=“font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 700; font-style: normal; text-decoration: none” %)2>>url:https://docs.google.com/docuxxxA/edit#heading=h.30j0zll|]]
I tried already everthing, like setting
config.pasteFilter = ‘plain-text’;
or
config.pasteFilter = ‘semantic-content’;
without any luck. Is there any possiblity to achieve to preserve elements like headings and images but remove all other formatting, so users can focus on content while pasting older content?
Thanks,
Markus