I am building an Umbraco 4.11.4 website and I want to add a custom popup to TinyMCE. I have a list of nodes in Umbraco and I want to be able to click on a custom button in the TinyMCE which will bring up a pop-up with a dropdown list that lists out the node names as mention above. When you select one of the nodes and click an "Insert" button it will insert into the text editor (where the cursor is) the name of the node selected.
Ideally I would also like the ability within the popup to create a node in the list if it doesn't already exist in the dropdown. The reason for this is so that I can have a global list of abbreviations that a user can easily add to the text (and they have the option to add an abbreviation if it is not already in the list).
Does anyone know if this is possible and if so how would I go about doing it? I have already added a custom button to TinyMCE that will insert some custom text where the cursor is but I need help with the showing of a pop-up, binding a dropdown list of nodes and the ability create new nodes in the list (I know how to do this using C# so ideally if the modal could show an aspx page).
TinyMCE custom popup or split button
Hi,
I am building an Umbraco 4.11.4 website and I want to add a custom popup to TinyMCE. I have a list of nodes in Umbraco and I want to be able to click on a custom button in the TinyMCE which will bring up a pop-up with a dropdown list that lists out the node names as mention above. When you select one of the nodes and click an "Insert" button it will insert into the text editor (where the cursor is) the name of the node selected.
Ideally I would also like the ability within the popup to create a node in the list if it doesn't already exist in the dropdown. The reason for this is so that I can have a global list of abbreviations that a user can easily add to the text (and they have the option to add an abbreviation if it is not already in the list).
Does anyone know if this is possible and if so how would I go about doing it? I have already added a custom button to TinyMCE that will insert some custom text where the cursor is but I need help with the showing of a pop-up, binding a dropdown list of nodes and the ability create new nodes in the list (I know how to do this using C# so ideally if the modal could show an aspx page).
Regards
Tony
is working on a reply...