Copied to clipboard

Flag this post as spam?

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


  • Kevon K. Hayes 255 posts 281 karma points
    May 18, 2011 @ 19:50
    Kevon K. Hayes
    0

    Tiny Editor - Adding Functionality

    Is it possible to enable the "Select Text Color" and "Select Background Color" buttons to the Editor as send here: http://tinymce.moxiecode.com/tryit/full.php

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 18, 2011 @ 22:07
    Jan Skovgaard
    1

    Hi Kevon

    I think that it should be possible to do so.

    Perhaps this guide on how to make it possible to use the abbr and acronym elements can be of use in order to make the above work. http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/how-to-add-extra-html-functionality-to-tinymce

    Hope this helps

    /Jan

  • Kevon K. Hayes 255 posts 281 karma points
    May 21, 2011 @ 16:34
    Kevon K. Hayes
    0

    I looked at this before but didnt know which element/names corresponded to which functionality. I'll give it another go and let you know.

  • Lesley 284 posts 143 karma points
    May 21, 2011 @ 18:33
    Lesley
    0

    Hi Kevon,

    I think the commands you're after are forecolor and backcolor. (See the tinymce documentation for the full list of buttons.)

    Lesley

  • Kevon K. Hayes 255 posts 281 karma points
    May 31, 2011 @ 20:45
    Kevon K. Hayes
    1

    I added the following to the tinyMCEConfig.config file and was able to view the following button available /   in the Developer section of the Richtext Editor Datatype... It did not show up under on the WYSIWYG Editor in the Content Section.

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

    <plugin loadOnFrontend="false">forecolor</plugin> //Cause Editor Toolbar to show up in Content Section
    <plugin loadOnFrontend="true">forecolor</plugin> // Causes Editor Toolbar to NOT show up in Content Section

    So the solution was all about the naming of the plugin (the "mce" prefix) this worked perfectly without the plugin elements:

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

Please Sign in or register to post replies

Write your reply to:

Draft