[wp-trac] [WordPress Trac] #30942: In quicktags settings, setting buttons to zero-length string doesn't give empty toolbar.

WordPress Trac noreply at wordpress.org
Thu Sep 3 23:08:43 UTC 2015


#30942: In quicktags settings, setting buttons to zero-length string doesn't give
empty toolbar.
--------------------------+------------------------------
 Reporter:  gitlost       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by gitlost):

 Thanks for responding.

 That's better, more understandable code, but personally would leave out
 the `ed.toolbar.style.display = 'none';` bit as it leaves a blank gap
 instead of an empty toolbar (due to the margin-top on the textarea) and a)
 is ignored with the workaround version and b) I find the later more
 aesthetically pleasing :)

 (It's useful in the sense that the filter will do what one expects.)

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


More information about the wp-trac mailing list