Make WordPress Core

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#28169 closed defect (bug) (wontfix)

wpeditimage tinymce plugin buttons are no longer available to other plugins/scripts.

Reported by: programmin's profile programmin Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: TinyMCE Keywords:
Focuses: javascript Cc:

Description

Pre-3.9, you could "monkey patch" the tinymce.activeEditor.plugins.wpeditimage._editImage function, adding specific edit/delete buttons' functionality to special images.

Now this is a private JS function, you can't access it at all.

Change History (4)

#1 @helen
10 years ago

  • Version changed from trunk to 3.9

#2 @iseulde
9 years ago

  • Component changed from Editor to TinyMCE
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Too late now.

#3 follow-up: @programmin
9 years ago

What do you mean "too late"? From what I understand plugin developers are no longer recommended to replace their shortcodes with images in editor (Nextgen) but they should use the wp-views system, same as playlists/galleries/etc.

#4 in reply to: ↑ 3 @iseulde
9 years ago

Replying to programmin:

What do you mean "too late"? From what I understand plugin developers are no longer recommended to replace their shortcodes with images in editor (Nextgen) but they should use the wp-views system, same as playlists/galleries/etc.

By now plugin authors will have worked around that problem. It doesn't make sense to fix this now.

Yes, you can use wpviews. If you're replacing a shortcode with an image, you can use the data-mce-placeholder attribute and you won't get an image toolbar for it.

Last edited 9 years ago by iseulde (previous) (diff)
Note: See TracTickets for help on using tickets.