[wp-trac] Re: [WordPress Trac] #6331: TinyMCE should have a code
button
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 10 12:38:40 GMT 2008
#6331: TinyMCE should have a code button
-------------------------+--------------------------------------------------
Reporter: westi | Owner: JeremyVisser
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: TinyMCE | Version: 2.5
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+--------------------------------------------------
Comment (by JeremyVisser):
I'm getting somewhere. I've got a working button to wrap {{{<code>}}} tags
around selected text. No icon yet, and if you click the button a second
time, it does not remove the code tag.
I think it is because I am using {{{execCommand('mceReplaceContent')}}},
where something that is aware of nodes would be more appropriate.
--
Ticket URL: <http://trac.wordpress.org/ticket/6331#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list