Commit dbfc03f1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix js error on tinymce focus (bug #623667)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent efde021e
......@@ -166,7 +166,7 @@ tinyMCE.init({
relative_urls: false,
setup: function(ed) {
ed.onInit.add(function(ed) {
if (editor_to_focus && typeof(editor_to_focus) == 'string' && ed.editorId == editor_to_focus) {
if (typeof(editor_to_focus) == 'string' && ed.editorId == editor_to_focus) {
ed.focus();
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment