Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Martin Griffiths 788 posts 1186 karma points c-trib
    Jul 01, 2019 @ 13:01
    Martin Griffiths

    Bizarre behaviour in attributes in tinyMCE

    I have been suffering a rather odd behaviour in the tinyMCE that I wonder if anyone else has come across.

    I'd recently honed our validElement list in the tinyMCE.config to stop the style attribute from being pasted or manually added from editor copy. We have a few classnames we allow, but generally inline style isn't allowed.

    I thought it was working fine when I noticed Lists and List Items were retaining the inline styles despite them not being allowed in the config file.


    code editor

    <ul style="background-color: transparent; color: #000000; cursor: text; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">

    It continues to strip on any other element just fine....its all very odd.

    Any ideas, anyone? I'm using Umbraco 7.14.


Please Sign in or register to post replies

Write your reply to: