[wp-hackers] Overriding the Link button in the Editor?
helen.y.hou at gmail.com
Wed Feb 9 20:31:35 UTC 2011
The advlink plugin for TinyMCE overrides the link button - you could take a
look and see how it does that (don't know enough to break it down myself).
Internal linking in 3.1 relies on using the regular link button as far as I
can tell though, so if you override it, you'll lose the internal linking
piece if/when you make the jump. Just tried it myself by replacing with
Why not just unset the regular link button and put your custom button there
instead? If you use the same icon, a user probably won't know the difference
On Wed, Feb 9, 2011 at 3:13 PM, Chip Bennett <chip at chipbennett.net> wrote:
> Sorry; misunderstood you. You meant the TinyMCE hyperlink button; I thought
> you meant the post shortlink button.
> I'm not sure how to filter existing TinyMCE buttons, but I assume that
> must be a way.
> On Wed, Feb 9, 2011 at 2:10 PM, Thomas Belknap
> <dragonfly at dragonflyeye.net>wrote:
> > I'm not creating a link for the blog post. I am creating links internal
> > the subject of the post.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers