You may have noticed sometimes that upon pasting a plain text in the What You See Is What You Get (WYSIWYG) Editor the result on the Editor appears to have additional formating added.
Copying just a text from a source and pasting it in the WYSIWYG Editor yields a different output.
For instance, the user may just copy the text from the following sentence:
and when this text will be pasted onto the WYSIWYG editor it will look like:
But the code will reveal:
You can see that there's a wealth of extra HTML tags and elements that came along with the text.
As you can see, the copied text is not as it was in the source and it is not just plain text with a homogeneous format, either.
This is due to the fact that once you copy a text from an application, this will copy the HTML code that comes along with the text and not just the plain text. Thus, upon pasting it on the WYSIWYG Editor, the whole HTML code will be fetched and you will get this different output as there will be some additional formatting being added to the editor.
In order to work around this, you can try one of the following options:
- Recommended: Paste as plain text by using Shift + Ctrl + V (Command + Shift + V on Mac)
- Paste the text you have copied in a Text Editor first (eg Notepad) and then recopy it and repaste it on the WYSIWYG Editor. This way it will be plain text without any extra HTML Code
- Use the WYSIWYG Editor to type your content manually making use of the functionalities/buttons it provides at the same time
- You can try the steps in the Solution Section of the Fixing Distorted or Huge Text Formatting in WYSIWYG Editor KB article.
The result will be just plain text as expected.
You will be able to verify that using the 'Code View' option, too, as you will see just the basic HTML tags that get auto-populated.