[wp-trac] [WordPress Trac] #28458: wp.mce.view: simplify things a bit
WordPress Trac
noreply at wordpress.org
Thu Jun 5 00:25:31 UTC 2014
#28458: wp.mce.view: simplify things a bit
--------------------------+------------------------------
Reporter: avryl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+------------------------------
Comment (by avryl):
Editing a view could also be a lot easier if the API took care of `$( node
).attr( 'data-wpview-text', window.encodeURIComponent( shortcode ) );`...
I'd also be cool if the old shortcode is passed, so you don't have to
`window.decodeURIComponent( $( node ).attr('data-wpview-text') );`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28458#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list