Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

How to create custom TinyMce dropdown which wraps selected text

Vote:
0

Hello, what I need to do is to add some custom dropdown list in tinyMce (Episerver 10, tinymce 3).

Scenario:

inside iframe which is rendering content of the page there will be some anchor elements

jQuery selector:

iframe = $('iframe');
popupsAnchors = $('a.Form__Anchor--Popup', iframe.contents());

i need to feed my dropdown with "name" attributes of those and bind "href" attribute as a value.

What I want to achieve finally is to wrap selected part of code with ....

I spend almost whole day yesterday on it, tinyMce3 documentation is very poor. What I achieved right now was to register custom plugin, add custom button and wrap selected text with some dummy wrapper. Can you please help?

#179026
May 30, 2017 7:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.