Custom Grid Editor with rich text editor Link dialog not displaying
Hi all. I am not sure why this isn't working, but I am hoping somebody can help.
I am using Umbraco 7.7.1 and I have a custom grid editor, with a cutom renderer, that I created that when you click on the link button in the RTE, the Link dialog does not open. This was working in an older version of Umbraco (7.5.13), but does not work in the newer versions.
I have slimmed down the editor to only the RTE, but I still can't seem to get it to work. I am hoping this is something simple that I am overlooking.
Here is my manifest file. I am not using the built in view because the editor will ultimately be comprised of 2 dropdowns, a text area, and this RTE.
I apologize, I did not explain the problem well enough.
The problem isn't that the editor doesn't show up, it is that any button in the editor that needs to display an Umbraco dialog no longer functions. My example was the Link button, but it is the same for the Embed and Media buttons as well.
Umbraco changed their own implementation of the richtext editor for the grid (since 7.6 I think), so you can use that for inspiration - these two files in particular:
Thank you so very much. That was it. I added the umb-overlay code to my editor and controller and I am back in business. Awesome. I can't thank you enough.
Custom Grid Editor with rich text editor Link dialog not displaying
Hi all. I am not sure why this isn't working, but I am hoping somebody can help.
I am using Umbraco 7.7.1 and I have a custom grid editor, with a cutom renderer, that I created that when you click on the link button in the RTE, the Link dialog does not open. This was working in an older version of Umbraco (7.5.13), but does not work in the newer versions.
I have slimmed down the editor to only the RTE, but I still can't seem to get it to work. I am hoping this is something simple that I am overlooking.
Here is my manifest file. I am not using the built in view because the editor will ultimately be comprised of 2 dropdowns, a text area, and this RTE.
Here is the Editor (cftesteditor.html)
The controller (cftest.controller.js):
And the renderer (cfTestRenderer.cshtml)
I am hoping somebody can tell me why, when I click the Link button in the RTE, nothing happens. Thanks.
Try touching the web.config file, saving that file, and then see if your editor shows up as a data type in Umbraco.
I apologize, I did not explain the problem well enough.
The problem isn't that the editor doesn't show up, it is that any button in the editor that needs to display an Umbraco dialog no longer functions. My example was the Link button, but it is the same for the Embed and Media buttons as well.
Thank you.
Umbraco changed their own implementation of the richtext editor for the grid (since 7.6 I think), so you can use that for inspiration - these two files in particular:
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/rte.controller.js
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/rte.html
Rather than using the Angular dialog service, Umbraco have started switching to the
umb-overlay
directive instead, which now also applies to the RTE.Thank you. This looks promising. I will need to research further.
Leonard
Thank you so very much. That was it. I added the umb-overlay code to my editor and controller and I am back in business. Awesome. I can't thank you enough.
Just to simplify i did this in the top of my controller:
And in my view I added this:
Just oversimplified for others who come looking for a quick solution :)
is working on a reply...