I don't think that it is possible in the way you may be thinking.
The way I see it you have two option. Either use canvas to edit your pages on the frontend or you can use tinymce. If you choose to use tinymce you need to grab the javascript code from here http://tinymce.moxiecode.com/download/full.php (maybe you can even just make a reference for the files used in umbraco?) and then see the examples page on how you set it up http://tinymce.moxiecode.com/examples/full.php
You simply just need a textarea on your page and then, as far as I recall from the top of my head, tinymce automatically makes an overlay, which enables you to format your text etc.
If you are using AutoForm or Doc2Form you must be sure that you have set ValidateRequest = false; - For more information please read about it on Rasmus' blog http://lynggaard.nu/2009/02/validaterequest-in-umbraco-v4/ - It has something to do with security when you allow HTML to be submitted.
umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl control = new umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl(); control.Text = "every thing is possible";
TinyMCE + Front End
Anyone have any ideas how to get the TinyMCE Datatype to render on the front end of the website?
Hi Skiltz
I don't think that it is possible in the way you may be thinking.
The way I see it you have two option. Either use canvas to edit your pages on the frontend or you can use tinymce. If you choose to use tinymce you need to grab the javascript code from here http://tinymce.moxiecode.com/download/full.php (maybe you can even just make a reference for the files used in umbraco?) and then see the examples page on how you set it up http://tinymce.moxiecode.com/examples/full.php
You simply just need a textarea on your page and then, as far as I recall from the top of my head, tinymce automatically makes an overlay, which enables you to format your text etc.
If you are using AutoForm or Doc2Form you must be sure that you have set ValidateRequest = false; - For more information please read about it on Rasmus' blog http://lynggaard.nu/2009/02/validaterequest-in-umbraco-v4/ - It has something to do with security when you allow HTML to be submitted.
Hope this helps.
/Jan
Ok, so maybe it is possible after all. Thanks for showing Masood :)
Jan, i have never tested though. I think it will work if appropriate files have been included (as noted by yourself)
thanks
Masood
This works but doesn't popupate the umraco tiny mce "theme"
Plaese have a look at this post http://our.umbraco.org/forum/using/ui-questions/4472-TinyMCE-Language-Issue
You can also try this
DataTypeDefinition dtf = new DataTypeDefinition({the idea of the datatype, in case of default RichText Editor, -87});
IDataType dt = dtf.DataType;
xPanel.Controls.Add((System.Web.UI.WebControls.WebControl)dt.DataEditor.Editor);
Here's a full example: http://our.umbraco.org/forum/developers/extending-umbraco/6863-Datatype-on-normal-page-or-UserControl?p=1#comment49125
Don't think it works on the frontend. Still need some Umbraco controls, but it works in a custom section.
Jeroen
is working on a reply...