wobe Posted June 8, 2014 Share Posted June 8, 2014 I use a repeater with a collection of fields to maintain a link list on my site. For ease of use i would like to offer editors a sorted link list in an enhanced link insertion dialog of tinyMCE, e.g. a new entry in this dialog box: The aim is to avoid typing in again links that are already entered in the system. Is there a hook to link in a new menu item to the tinyMCE insert-link-dialog? ciao wobe 1 Link to comment Share on other sites More sharing options...
teppo Posted June 9, 2014 Share Posted June 9, 2014 Couldn't find a really clean way to do this at the moment, but since the view used in pwlink TinyMCE plugin is essentially ProcessPageEditLink and it's execute() method is hookable, you could try tapping into that and altering the resulting markup (return value of said method). This is first request I've seen for such a thing, but if this sounds like something that would make sense in more cases I'd suggest asking Ryan (by creating a GitHub issue for it) if adding a better way to do this, i.e. new hookable method somewhere before the form markup is generated, would be possible. Edit: almost forgot: welcome to the forum! Link to comment Share on other sites More sharing options...
wobe Posted June 9, 2014 Author Share Posted June 9, 2014 teppo, thanks for the warm welcome and the hint how to solve the problem I will try your approach and post the results. ciao wobe Link to comment Share on other sites More sharing options...
matjazp Posted June 10, 2014 Share Posted June 10, 2014 I'm interested ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now