Copy + paste from Word adds hidden junk markup
-
In the old days of WordPress when you copy a text from Microsoft Word, and paste into the content editor, it would contain lots of hidden markup, classes, colors, fonts, which would override the website CSS and affect the design/layout. These days WP is quite good at stripping all this junk away.
However when using Rich Textarea or Teeny Rich textarea in this plugin that is not the case.
All kinds of HTML markup is preserved, causing a cacophony of weird layouts. These just two examples
<div id="job-details" class="jobs-box__html-content jobs-description-content__text t-14 t-normal" style="margin: 0px 24px 0px 0px; padding: 0px; border: 0px; font-size: 1.4rem; vertical-align: baseline; background: transparent; line-height: 1.42857; min-width: 0px;" data-artdeco-is-focused="true"></div>
<p style="margin: 0px; padding: 0px; border: 0px; font-size: 1.4rem; vertical-align: baseline; background: transparent; line-height: 1.42857;"><span style="margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background: transparent; font-weight: 600;"> </span></p>
Is there a fix to make the rich editor behave smarter, like the normal WP editor?
- The topic ‘Copy + paste from Word adds hidden junk markup’ is closed to new replies.