Copied to clipboard

Flag this post as spam?

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


  • Jason Prothero 416 posts 1226 karma points c-trib
    Mar 18, 2011 @ 17:27
    Jason Prothero
    0

    TinyMCE not showing up on Blog dashboard on v4.7.0

    When I upgraded an Umbraco install from 4.0.x to 4.6.1, the TinyMCE editor in the blog4umbraco dashboard CreatePost tab disappeared.  I just upgraded to 4.7 and its still missing.

    This also happens on a Commerce4Umbraco edit product page.

    Has anything changed in TinyMCE from 4.5.2 to 4.6.1 that would cause this?  Any clues for debugging this issue?  The 4.5.2 upgrades I've done work fine.

    I also upgraded from .NET 2.0 to .NET 4.0 so perhaps that is the issue?  Is there some dlls that I need to update?

     

    Thanks,

    Jason

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Mar 18, 2011 @ 19:06
    Jan Skovgaard
    0

    Hi Jason

    What browsr are you using? Have you tried several browsers with the same issues?

    /Jan

  • Jason Prothero 416 posts 1226 karma points c-trib
    Mar 18, 2011 @ 21:45
    Jason Prothero
    0

    Good point.  I'll check browsers other than FireFox.

  • Jason Prothero 416 posts 1226 karma points c-trib
    Mar 25, 2011 @ 23:49
    Jason Prothero
    0

    Well, it isn't browser specific...

     

    Any other thoughts?

  • Zac 39 posts 61 karma points
    Jul 19, 2011 @ 20:08
    Zac
    0

    I just came across the same issue. There seems to be a change in the way that the TinyMCE control assigns the toolbar id.

    I couldn't fix this properly, but a simple fix is to just add a div with the right ID to usercontrols\blog4umbraco\CreatePost.ascx. The toolbar won't display in the dashboard header but it doesnt look too bad and it actually works.
    It should look like this:

    <div id="umbTinymceMenu_body_ctl00_bodyText"></div>
    <asp:PlaceHolder ID="blogpostControls" runat="server">

     

  • Tom W 31 posts 86 karma points
    Aug 30, 2011 @ 14:39
    Tom W
    0

    I've been having the same issues, using a mail component that I wrote for 4.5.2. (now on 4.7)

    This works, but it's not very pretty. Hopefully it will help someone though.

     

      protected void Page_Init(object sender, EventArgs e)
            {
                umbraco.cms.businesslogic.datatype.DataTypeDefinition dataTypeTiny = umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetDataTypeDefinition(-87);
    
                umbraco.editorControls.tinyMCE3.TinyMCE tinymce1 = (umbraco.editorControls.tinyMCE3.TinyMCE)dataTypeTiny.DataType.DataEditor;
                tinymce1.ID = "T1"// any ID
                Body.Controls.Add(tinymce1);  // Body is a <asp:placeholder />
    
                MainPanel.Menu.NewElement("div""umbTinymceMenu_" + tinymce1.ClientID, "tinymceMenuBar", 0); // adds to menu bar
            }
    

     

     

    I also had issues with 

    umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetByDataTypeId

    But, as I'm in a bit of a rush, I used the "obselete" 

    GetDataTypeDefinition
  • Jason Prothero 416 posts 1226 karma points c-trib
    Aug 30, 2011 @ 17:33
    Jason Prothero
    0

    I ended up just replacing it with a vanilla TinyMCE, but I'll take a look at your solution Tom.

     

    Thanks,
    Jason

  • Jigs 40 posts 63 karma points
    Sep 02, 2011 @ 01:44
    Jigs
    0

    Thanks Tom,

    finally i able to put RTE on my edit page, following your code  ...... great help ......cheers

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 17, 2012 @ 14:50
    Jeroen Breuer
    0

    I've had the same problem and couldn't find a good solution. Here is my code to add TinyMCE:

    //TinyMCE
    DataTypeDefinition introDatatype = DataTypeDefinition.GetDataTypeDefinition(1331);
    tabPage.Menu.NewElement("div", "tinyMCEMenu0", "tinymceMenuBar", 0);
    _editorIntro = (TinyMCE)introDatatype.DataType.DataEditor;
    _editorIntro.config.Add("umbraco_toolbar_id", "tinyMCEMenu0");
    PlaceHolderIntro.Controls.Add(_editorIntro);

    Somehow this didn't work in 4.7 so I took the 4.7 source and changed the OnLoad method of the umbraco.editorControls.tinyMCE3.TinyMCE back to how it was in 4.5 and now it's working again. So running on a custom version of umbraco.editorControls.dll, but at least I can use TinyMCE on a dashboard or custom section without problems :-).

    Jeroen

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 17, 2012 @ 15:14
    Jeroen Breuer
    0

    Created an issue for this: http://issues.umbraco.org/issue/U4-1052.

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies