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. This article explains why this occurs and how you can work around it.
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:
As you can see, the copied text is not as it was in the source and it is not just plain text with 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.
For the above example, the source code will be as follows:
You can see that there's a wealth of extra HTML tags and elements that came along with the text.
In order to work around this, you can try one the following two options:
a) 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.
b) Use the WYSIWYG Editor to type your content manually making use of the functionalities/buttons it provides at the same time.
c) 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.