• Resolved juliancom

    (@juliancom)


    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;">&nbsp;</span></p>

    Is there a fix to make the rich editor behave smarter, like the normal WP editor?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @juliancom
    Firstly sorry for the late response.??

    I’m sorry to say, but this is the default behavior of the Rich Textarea or Teeny Rich text-area field. It will preserve the HTML/CSS to print the actual object (same alike your MS doc). So I can suggest two alternate way to avoid that:
    1) Provide normal-type textarea, which will stripe all of the HTML/CSS markups.
    2) You can paste the content with [CTR/CMD+SHIFT+V], which will paste the content only without the markup.

    I hope this will helps.

    Due to the inactivity of the thread. I’m making this resolved.

    Feel free to open a new topic for further new issues/quereis.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Copy + paste from Word adds hidden junk markup’ is closed to new replies.