Copied to clipboard

Flag this post as spam?

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


  • Jessica Nordbeck 4 posts 34 karma points
    Dec 07, 2015 @ 12:44
    Jessica Nordbeck
    0

    ColorPicker in Umbraco 4.7.2

    Hi,

    Our client is using Umbraco 4.7.2 and we have enabled the ColorPicker-plugin in TinyMCE. The following is stated int he tinyMceConfig.config:

      <command>
          <umbracoAlias>mceForeColor</umbracoAlias>
          <icon>images/editor/forecolor.gif</icon>
          <tinyMceCommand value="" userInterface="true" frontendCommand="forecolor">forecolor</tinyMceCommand>
          <priority>25</priority>
      </command>
    

    However, it has stopped working. After they've chosen a color in the picker, the text looks like it is updated, but it isn't. The color "disapears" after Save and Publish.

    Does anyone have any idea on what is going on?

    Thanks for any input!

    /Jessica

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Dec 07, 2015 @ 13:17
    Dave Woestenborghs
    100

    Hi Jessica,

    What kind of html does the color picker add ? It's possible that it add's a tag that isn't allowed by default.

    In the tinyMceConfig there is a section called "validElements". Make sure the tag is allowed there. Or remove it from "invalidElements".

    Dave

  • Jessica Nordbeck 4 posts 34 karma points
    Dec 07, 2015 @ 13:49
    Jessica Nordbeck
    0

    Thank you Dave! :-)

    So easy when you know the solution! We had an additional valid elements config, which required the span to have a class, which the color picker doesn't add... so, it gets omitted.

    <config key="extended_valid_elements"><![CDATA[span[!class]]]></config>
    
Please Sign in or register to post replies

Write your reply to:

Draft