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
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
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 :-)
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
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
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
Hi Lachlann,
Glad to hear it worked for you! :-)
/ Bo
is working on a reply...