We just bought a licence to a third party Rich Text Editor and we want to integrate that into Umbraco 7. I read some articles about creating simple custom data types but haven't found any articles related to integrating RTE.
In its most basic form, you should just be able to follow the tutorial to create a property editor, and just replace the HTML and JS with the bare minimum to get your RTE up and running (and reference the necessary files in the plugin manifest file, as shown in the tutorial).
However, that will only get you a basic RTE that does not integrate with Umbraco in any way. You will not, for instance, be able to insert images from the Media section and link to other Umbraco pages, like you can with the built-in RTE. You would have to build custom plugins for your RTE to support this using the services Umbraco provides. Everything should be possible to do, it just takes a fair bit of work to replicate the built-in functionality.
I am able to integrate the new Rich Text Editor as a new datatype to the Umbraco 7. However, when I save the data from RTE nothing happens. How do I bind the new Rich Text Editor data to the model?
Sorry for not getting back to you sooner, but you know, holidays and all that ;)
Glad to hear you got it working. Most RTEs have an event of some sorts you can hook up to. That way you can be notified and keep the back-end data in sync at all times. That might be a better option, depending on your particular circumstances.
Thanks Asbjorn for your suggestion. We still have one issue with our new Editor. When the editor loads, it always shows the loading gif and when we try to upload an image it gives a popup as shown in the screenshot. So, the new Editor is being rendered as a partial view from our custom MVC controller. When we directly call the MVC controller, all the functionalities work properly on RTE but when we use as Umbraco datatype it is not loading one of the RTE dependent javascript file.
We have also tried loading RTE javascript file as assetsService, hardcoded it on the html page and tried other several different ways but nothing works.
New Rich Text Editor in Umbraco?
How to integrate new Rich Text Editor in Umbraco 7?
Hi AJ,
to integrate a new rte have a look in how to build a custom data type or if you want it in the grid then at how to build a custom grid editor.
Regards David
David,
We just bought a licence to a third party Rich Text Editor and we want to integrate that into Umbraco 7. I read some articles about creating simple custom data types but haven't found any articles related to integrating RTE.
Please advice.
Thanks, AJ
In its most basic form, you should just be able to follow the tutorial to create a property editor, and just replace the HTML and JS with the bare minimum to get your RTE up and running (and reference the necessary files in the plugin manifest file, as shown in the tutorial).
However, that will only get you a basic RTE that does not integrate with Umbraco in any way. You will not, for instance, be able to insert images from the Media section and link to other Umbraco pages, like you can with the built-in RTE. You would have to build custom plugins for your RTE to support this using the services Umbraco provides. Everything should be possible to do, it just takes a fair bit of work to replicate the built-in functionality.
I'd start by having a look in the Umbraco source code at the implementation of the existing RTE: https://github.com/umbraco/Umbraco-CMS/tree/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte. The various Umbraco plugins for TinyMCE can be found here and may also be useful: https://github.com/umbraco/Umbraco-CMS/tree/dev-v7/src/Umbraco.Web.UI.Client/lib/tinymce/plugins
Thanks Asbjorn. I will check those out.
Hi Asbjorn,
I am able to integrate the new Rich Text Editor as a new datatype to the Umbraco 7. However, when I save the data from RTE nothing happens. How do I bind the new Rich Text Editor data to the model?
My html file looks like this:
My angular controller snippet looks like this :
I ended up saving the RTE content to the database by using the following code snippet on my controller.
Hi,
Sorry for not getting back to you sooner, but you know, holidays and all that ;)
Glad to hear you got it working. Most RTEs have an event of some sorts you can hook up to. That way you can be notified and keep the back-end data in sync at all times. That might be a better option, depending on your particular circumstances.
Asbjørn
Thanks Asbjorn for your suggestion. We still have one issue with our new Editor. When the editor loads, it always shows the loading gif and when we try to upload an image it gives a popup as shown in the screenshot. So, the new Editor is being rendered as a partial view from our custom MVC controller. When we directly call the MVC controller, all the functionalities work properly on RTE but when we use as Umbraco datatype it is not loading one of the RTE dependent javascript file.
We have also tried loading RTE javascript file as assetsService, hardcoded it on the html page and tried other several different ways but nothing works.
Please let us know if we are missing something.
Thanks.
is working on a reply...