Jump to content

inserting links from link list using tinyMCE


wobe
 Share

Recommended Posts

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:

post-2377-0-78844400-1402270578_thumb.pn

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

  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...