[wp-trac] [WordPress Trac] #28612: Paste as Text Modal Should be Dismiss-able

WordPress Trac noreply at wordpress.org
Sun Jun 22 16:08:45 UTC 2014


#28612: Paste as Text Modal Should be Dismiss-able
-------------------------+------------------------------
 Reporter:  ericmann     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui
-------------------------+------------------------------
Changes (by ericmann):

 * keywords:   => needs-patch


Comment:

 Replying to [comment:1 avryl]:
 > I agree, but it's not simple to change this unless we modify the TinyMCE
 paste plugin.

 Actually no, it would be simple. The string that prints to the page is
 passed through `wp_localize_script()`. A very simple option would be to
 add an anchor tag with a class to the localized text and use editor JS to
 capture events on that tag. No modifications to the TinyMCE plugin
 required.

 > We could dismiss it automatically per user (by clicking "OK").

 That would be a fair compromise.

 > we can't add an extra button.

 Wasn't just requesting an extra button, just a way to get rid of the modal
 nag. Auto-dismissing on OK clicks would be fine. Injecting a control into
 the modal the same way we inject the reference to MS Word would be
 acceptable as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28612#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list