[wp-trac] [WordPress Trac] #17144: Editor API enhancement
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 13 13:32:38 UTC 2011
#17144: Editor API enhancement
----------------------------+------------------
Reporter: azaozz | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.3
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+------------------
Comment (by GDragoN):
I have tested the new WP_Editor class in the meta box on the post edit
page with this code:
{{{
$gdtt_editor = new WP_Editor();
$gdtt_editor->editor($value, $id, array("textarea_name" => $name));
}}}
And my editor loads and renders as you would expect it, but the the main
post editor is broken. There is one JavaScript error reported in
tiny_mce.js (it is compressed file even with SCRIPT_DEBUG, so the error is
not very clear: q is not a constructor). Main post editor has HTML editor
and it is working, but Visual editor is missing. When I add second custom
editor, than that one is OK, but main post editor and my first editor are
broken. So, only the last editor created is actually working.
Also, there are couple styling issues with added editors: visual editor
background color was gray (as the meta box) and resize element was outside
of the editor.
I was using trunk code from today (october 13, 2011, revision 18964).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17144#comment:87>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list