Copied to clipboard

Flag this post as spam?

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


  • Lachlann 344 posts 626 karma points
    May 07, 2011 @ 15:55
    Lachlann
    0

    TinyMCE in the Front end

    Hello All,

    I am trying to USE tinyMCE in a front end control on my site. I have managed to add the control to my form using:

     umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl control = new umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl();
    RTE.Controls.Add(control);

    and it renders fine, However.

    The insert Image Button and the insert hyperlink buttons dont work. The insert image button I would like to remove but the insert hyper link button is trying to open a page within the tinyMCE folders

    'mydomain'/umbraco_client/tinymce3/themes/umbraco/link.htm

    But i get 'A failed to open URL' error.

    So my question is, Has anyone managed to get the tinyMCE control working in a front end control? If so how did you do it (bear in mind Im really new to c#)

    I ideally i would like to get something akin to the rich text editor on this forum

    Thanks a million

     

    L

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    May 08, 2011 @ 11:22
    Bo Damgaard Mortensen
    1

    Hi Lachlann,

    You should have an easier time downloading the TinyMCE editor from http://tinymce.moxiecode.com/ and use it that way. You're able to customize it the way you want and it simply uses a regular textbox/textarea element to convert to the editor :-)

    Hope it works out for you.

    All the best,

    Bo

  • Lachlann 344 posts 626 karma points
    May 08, 2011 @ 17:40
    Lachlann
    0

    Hey Bo,

     

    thanks for the pointer, I went ahead and did that and It was way easier than i thought it would be. works a treat.

     

    L

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    May 08, 2011 @ 23:13
    Bo Damgaard Mortensen
    0

    Hi Lachlann,

    Glad to hear it worked for you! :-)

    / Bo

Please Sign in or register to post replies

Write your reply to:

Draft