[wp-trac] [WordPress Trac] #19173: Issues with wp_editor() when used inside of a meta box.

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 6 09:13:33 UTC 2011


#19173: Issues with wp_editor() when used inside of a meta box.
--------------------------+------------------------------
 Reporter:  goto10        |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by ocean90):

 * owner:   => azaozz
 * status:  new => reviewing


Comment:

 It works in Chrome 17 dev.

 Opera error log:

 {{{
 Uncaught exception: TypeError: Cannot convert 'p.getBody()' to object

 Error thrown at line 1, column 309502 in <anonymous function:
 getContent>(q) in http://wpms.dev/wp-
 includes/js/tinymce/tiny_mce.js?ver=345-20111105:
     r=p.getBody().innerHTML
 called from line 1, column 340171 in g() in http://wpms.dev/wp-
 includes/js/tinymce/tiny_mce.js?ver=345-20111105:
     return b.trim(f.getContent({format:"raw",no_events:1}))
 called from line 1, column 340603 in <anonymous function: add>(m) in
 http://wpms.dev/wp-includes/js/tinymce/tiny_mce.js?ver=345-20111105:
     m.content=g();
 called from line 1, column 307310 in <anonymous function: save>(u) in
 http://wpms.dev/wp-includes/js/tinymce/tiny_mce.js?ver=345-20111105:
     p.undoManager.add()
 called from line 1, column 306249 in <anonymous function: hide>() in
 http://wpms.dev/wp-includes/js/tinymce/tiny_mce.js?ver=345-20111105:
     p.save();
 called from line 36, column 4 in <anonymous function: go>(a) in
 http://wpms.dev/wp-admin/js/editor.dev.js?ver=20110820:
     ed.hide();
 called from line 1, column 0 in <anonymous function>(event):
     switchEditors.go(this);
 }}}

 Safari error log:

 {{{
 TypeError: 'undefined' is not an object (evaluating 'j.createRange')
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19173#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list