I want to use data type such as richtext editor as usercontrol so that end user can apply styles to his text means i want to give admin to add / apply styles to his text by my usercontrol.Can anyone guide me how to implement it.
You can't use a DataType as a macro, but you can use the TinyMCE editor shipped with umbraco.
Download the Moxiecode.TinyMCE.dll from the .NET package in the Other Components section at http://tinymce.moxiecode.com/download.php and add it to umbraco. You can then add the TinyMCE editor to your template like this:
Hello sir exactly i dont get what you explain i download that .dll file but where to copy in umbraco........Please guide me........thanks in advance.....vijay.
@vijay: The dll should be added in tne bin folder in your umbraco installation, and the code example is what you need in your template to add a rich text editor that the visitor can use from your website. In the template codebehind you can use the Value property to get the text in the rich text editor. All this however requires that you have a code behind file for your template, and that you can compile that code to a dll which also needs to be added to the umbraco bin folder.
@Kenneth: Good question. I never looked into that, but out of the box it's not suported. However, since a media picker for TynyMCE is implemented in umbraco, perhaps that extension can be loaded using the .NET control as well. Worth looking into.
Can i use Umbraco Datatype as Macro
I want to use data type such as richtext editor as usercontrol so that end user can apply styles to his text means i want to give admin to add / apply styles to his text by my usercontrol.Can anyone guide me how to implement it.
Thanks in advance,
vijay.
You can't use a DataType as a macro, but you can use the TinyMCE editor shipped with umbraco.
Download the Moxiecode.TinyMCE.dll from the .NET package in the Other Components section at http://tinymce.moxiecode.com/download.php and add it to umbraco. You can then add the TinyMCE editor to your template like this:
In your codebehind, use the Value property to get the text from the texteditor.
I hope this helps.
Kind regards
Dennis Milandt
Hello sir exactly i dont get what you explain i download that .dll file but where to copy in umbraco........Please guide me........thanks in advance.....vijay.
Nice Dennis, how does it cope with Media?
@vijay: The dll should be added in tne bin folder in your umbraco installation, and the code example is what you need in your template to add a rich text editor that the visitor can use from your website. In the template codebehind you can use the Value property to get the text in the rich text editor. All this however requires that you have a code behind file for your template, and that you can compile that code to a dll which also needs to be added to the umbraco bin folder.
@Kenneth: Good question. I never looked into that, but out of the box it's not suported. However, since a media picker for TynyMCE is implemented in umbraco, perhaps that extension can be loaded using the .NET control as well. Worth looking into.
Kind regards
Dennis Milandt
is working on a reply...