Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Sep 23, 2010 @ 13:54
    Ismail Mayat
    0

    Styles not applied through tinymce

    I am using umbraco 4.5.2 and i have created some styles when i select some text to apply the style i get js error namely:

    formatList is undefined

    the offending js line in tinymce is

    function apply(name, vars, node) {
                var formatList = get(name), format = formatList[0], bookmark, rng, i;
    

    Anyone else having this issue?

    Regards

    Ismail

     

     

  • Fergus Davidson 309 posts 588 karma points
    Sep 24, 2010 @ 11:06
    Fergus Davidson
    0

    FYI: i am using 4.5.2 and the styles i have attached to the rich text editor are working fine for me

  • Gregg Duncan 48 posts 70 karma points
    Oct 20, 2010 @ 19:50
    Gregg Duncan
    1

    I had the same problem and I just figured out what I was doing wrong.

    When creating the properties on the style sheet the Alias has to be changed to CSS syntax.

    example:

    1. Create a property and give it the name "Red Text".
    2. In the dialog the "Name" field displays "Red Text",
    3. The "Alias" field also displays "Red Text".
    4. Set the styles to "Color: #ff0000;" and save it.

    Now go to the rich text editor and attempt to use it. You get the javascript error you are describing.

    1. Go back to the stylesheet property and change the alias to a CSS syntax: set "Alias" field to ".red-text" (Note the dot before the word "red" indicating this is a class).
    2. Save the property. 

    Now go to the rich text editor and attempt to use it. It works perfectly.

    You have to use proper CSS syntax for the Alias. it appears that you can only use tag names and CSS class names. Prefixing an alias with the # causes the same problem described above.

    I hope this helps someone.

Please Sign in or register to post replies

Write your reply to:

Draft