Copied to clipboard

Flag this post as spam?

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


  • Árni Gunnar Ragnarsson 31 posts 51 karma points
    Mar 22, 2011 @ 12:29
    Árni Gunnar Ragnarsson
    0

    TinyMCE causing trouble with block format

    Hi.

    I have been using Umbraco for a while now, and am loving it for the most part. The richtext editor however has been causing some serious trouble. I let my content editors put h3/h4/h5 dags from the block formats drop down, but every time the page get published, it gets stripped away.

    The text is in the editor, and I select the block I want to change, and select which format to use (h3/h4/h5/etc). The blockformat changes in the editor, I can see that. But even if I just click the HTML button in the toolbar, the tag is stripped out, and I cannot change it back.

    In the HTML window, if I manyally set some block of text to h3, it does not show in the editor and does not get updated when I save/publish.

    My setting in umbracoSettings.config:

    <TidyEditorContent>False</TidyEditorContent>

    My allowed elements in tinyMCE.config

    +a[id|style|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class],
    -strong/-b[class|style],
    -em/-i[class|style],
    -strike[class|style],
    -u[class|style],
    #p[id|style|dir|class|align],
    -ol[class|style],
    -ul[class|style],
    -li[class|style],
    br,
    img[id|dir|lang|longdesc|usemap|style|class|src|border|alt=|title|hspace|vspace|width|height|align|umbracoorgwidth|umbracoorgheight|rel],
    -sub[style|class],
    -sup[style|class],
    -blockquote[dir|style],
    -table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],
    -tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],
    tbody[id|class],
    thead[id|class],
    tfoot[id|class],
    -td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],
    -th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],
    caption[id|lang|dir|class|style],
    -div[id|dir|class|align|style],
    -span[class|align],
    -pre[class|align|style],
    address[class|align|style],
    -h1[id|dir|class|align],
    -h2[id|dir|class|align],
    -h3[id|dir|class|align],
    -h4[id|dir|class|align],
    -h5[id|dir|class|align],
    -h6[id|style|dir|class|align],
    hr[class|style],
    dd[id|class|title|style|dir|lang],
    dl[id|class|title|style|dir|lang],
    dt[id|class|title|style|dir|lang],
    object[classid|width|height|codebase|*],
    param[name|value|_value],
    embed[type|width|height|src|*],
    map[name],
    area[shape|coords|href|alt|target],
    bdo,
    button

    I have been ripping what is left of my hair trying to figure out what is going on, but I am at the end of my rope so to speak ...

    Does anyone here have any ideas ?

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 22, 2011 @ 12:38
    Jan Skovgaard
    0

    Hi Arni

    What version of Umbraco are you using?

    And how have you set up the stylesheet for the rich text editor in Umbraco? (A screendump of this would be nice).

    /Jan

  • Árni Gunnar Ragnarsson 31 posts 51 karma points
    Mar 22, 2011 @ 14:40
    Árni Gunnar Ragnarsson
    0

    Hi.

    I am using 4.6.1, and am not using any stylesheets for the editor itself, only the blockformat dropdown.

    The funny thing is that when I tested h4, it worked, but h3 got stripped from the HTML.

    http://dev.zeus.is/images/umbraco/screenshot-2011-03-22-01.jpg
    http://dev.zeus.is/images/umbraco/screenshot-2011-03-22-02.jpg
    http://dev.zeus.is/images/umbraco/screenshot-2011-03-22-03.jpg

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 22, 2011 @ 22:08
    Jan Skovgaard
    0

    Hi Arni

    Yes, that really looks weird. But where is the "styles" list populated with the headings?

    Isn't it defined in the stylesheet folder in the settings section?

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft