Copied to clipboard

Flag this post as spam?

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


  • Johan Reitsma 68 posts 234 karma points MVP
    Mar 07, 2014 @ 19:10
    Johan Reitsma
    0

    TinyMCE formats using config

    in tiny you can set the formats as following:

    / Output elements in HTML style tinyMCE.init({ ... formats : { alignleft : {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes : 'left'}, } });

    We want this because our designer wants to style on classes in the editor and not on inline styles.

    I changed the code to use the customconfig from tinymceconfig.config and it loads string values, but is it possible to set the formats through the custom config?

    I tried CDATA but its an object in tinymce init. Does anyone have a idea how to fix it or must i change de editor code to use formats?

    Johan

Please Sign in or register to post replies

Write your reply to:

Draft