[wp-trac] [WordPress Trac] #29357: tinymce.activeEditor.formatter.apply is not working properly for links

WordPress Trac noreply at wordpress.org
Mon Aug 25 00:43:24 UTC 2014


#29357: tinymce.activeEditor.formatter.apply is not working properly for links
--------------------------+-----------------------------
 Reporter:  unsalkorkmaz  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 tinymce.activeEditor.formatter.apply is working properly for other dom
 elements (like span, div etc.) but it has problems with <a> element when
 there is a different attribute already presense.

 How to reproduce:
 1. Install http://wordpress.org/plugins/firmasite-theme-enhancer/ plugin,
 it will add 2 custom buttons to editor.
 2. In editor, when you select normal text and use '''Styles -> Link to
 Button -> Button Color -> Standard''' from dropdown menu, it will
 successfully apply css to text for making it a button..
 but if you select a predefined <a> element with an attribute like this
 example:
 <a rel="nofollow" href="#">simple test</a>
 and try to apply same '''Styles -> Link to Button -> Button Color ->
 Standard''' from dropdown menu, it wont work

 (Sorry if its not core related but i believe its a bug in core, maybe
 compat3x plugin causing problem. This code was working before wp3.9 with
 plugin's 1.2.5 version.)
 Related js file:
 http://plugins.svn.wordpress.org/firmasite-theme-enhancer/tags/1.3.1
 /theme-enhancer/assets/js/firmasite-button.js

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29357>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list