[wp-trac] [WordPress Trac] #33421: wp_editor with custom editor_id not working
WordPress Trac
noreply at wordpress.org
Fri Apr 29 21:33:30 UTC 2016
#33421: wp_editor with custom editor_id not working
--------------------------+-----------------------------------------
Reporter: abadahenno | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: TinyMCE | Version: 4.2.4
Severity: normal | Resolution:
Keywords: | Focuses: javascript, administration
--------------------------+-----------------------------------------
Changes (by LewisCowles):
* status: closed => reopened
* resolution: duplicate =>
Comment:
I'm sure this bug is about more than square braces. I have the same error,
without curly braces in 4.5, with code that worked in 4.4...
<?php wp_editor( wpautop(stripslashes($post->post_content)),
'content',
['media_buttons'=>false,'textarea_name'=>'content','dfw'=>true,'tiny_mce'=>true,'drag_drop_upload'=>true]
); ?>
This code exists within my view, $post is sent to the view, and I can
confirm that the textarea has the post's content, but the wp_editor has JS
errors (i'll add an attachment also for this)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33421#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list