Content copied from formatted text includes undesired formatting visible in dark mode
Sergii Tiurin
When you copy content from formatted text (e.g. bulleted list) as opposed copying text from a paragraph, and paste it as is (CTRL+V), the pasted content is not the same as the original content, because it includes a block of formatting parameters (span style), which are visible in code. As a result, the pasted content looks OK in the editor and in the published content, but only in the light mode. If you switch to the Dark mode, such text looks highlighted because of those added parameters in code.
Steps to reproduce:
- Format some text as a bulleted or numbered list.
- Copy some text from a bulleted/numbered item into a different bulleted/numbered item.
- View the code (the pasted code contains an additional block that is not present in the original part).
- Preview the topic and switch to the Dark mode.
Actual result: The pasted text is highlighted.
Expected result: The pasted text looks the same as in the part it was copied from.
Workaround: You can paste as plain text. Then, you won't have this issue. But also you will lose the formatting.
It is necessary to have the ability to copy formatted text. preserving the formatting and where the pasted part is not modified compared to the original part.
See the screenshots with an example.
Log In
Glenn Elliott
Is there any update to this? I have reported this myself on many occasions and there doesnt seem to be any movement on fixing this bug.
Copying and pasting text within an article should not inject any extra html, it should just be plain text.
As others have said it is easier to rewite sections than it is to copy and paste.
And added to this bug if you copy from document360 to a notepad then copy from the notepad back to document360 it acutally keeps the formatting!
To properly remove it you have to copy from document360 to notepad, add a single character to your text, then copy it from notepad and paste into document360, now all the formatting is gone and then remove that one extra character!
magda m
unfortunatelly the clean formatting option doesn't work and the undesired code remains
Vidhya
Hi Sergii
Greetings!!! Hope you are doing great!
It has been a while. We are extremely sorry about the delay. Regarding the issue of seeing a white background for some sentences in Dark mode, our developers have confirmed that that is the behaviour for now. However, we do have the following workarounds:
- If the content is copied from Microsoft Word, please select "Clean" when the option is given for keep /clean format.
- If the content is copied from any other articles or other sources, please select the option "Cleat formatting" (available in WYSIWIG editor).
Hope this helps. Please feel free to reach us if you have any questions. We will be glad to assist you. Have a great day ahead!
Vidhya
Hi Sergii Tiurin apologies for the inconvenience caused. We appreciate your effort in sending the detailed steps which helped us to reproduce the issue. We will resolve the issue and keep you updated at the earliest.
Caren Lippe
Agreed! I have often re-written text because copying and pasting would have taken longer!
magda m
this bug is really annoying. sometimes even when you clear the formatting, it still stays in the code and is visible in the dark mode