[wp-trac] [WordPress Trac] #17501: Javascript errors in press this
WordPress Trac
wp-trac at lists.automattic.com
Thu May 19 12:55:44 UTC 2011
#17501: Javascript errors in press this
--------------------------+------------------
Reporter: greuben | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Press This | Version:
Severity: major | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by greuben):
Seems like mceCleanup needs selection
Backtrace
{{{
Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3
c.create.getBookmark -- tiny_mce.js:1
c.EditorCommands.t.mceCleanup -- tiny_mce.js:1
q -- tiny_mce.js:1
m.create.execCommand -- tiny_mce.js:1
j.EditorManager.d.execCommand -- tiny_mce.js:1
append_editor -- press-this.php:161
(anonymous function):4
f.event.handle -- jquery.js:17
f.event.add.k.i.handle.k -- jquery.js:16
}}}
Code
{{{
mceCleanup : function() {
var bookmark = selection.getBookmark(); // the errors occurs here
editor.setContent(editor.getContent({cleanup : TRUE}), {cleanup :
TRUE});
selection.moveToBookmark(bookmark);
},
}}}
@azaozz: can you confirm if the latest patch is working? see
[attachment:17501.2.diff]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17501#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list