BUGFIX: Check for functions existence

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96443 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Luke Hudson 2010-01-07 01:39:44 +00:00 committed by Sam Minnee
parent 3a63f1ab52
commit e4d1eee3c1

View File

@ -79,8 +79,10 @@
});
ed.onNodeChange.add(function(ed, o) {
$('Form_EditorToolbarLinkForm').updateSelection(ed);
if ($('Form_EditorToolbarLinkForm').updateSelection) {
$('Form_EditorToolbarLinkForm').updateSelection(ed);
$('Form_EditorToolbarLinkForm').respondToNodeChange(ed);
}
});
ed.onKeyUp.add(function(ed, o) {
$('Form_EditorToolbarLinkForm').updateSelection(ed);
@ -110,4 +112,4 @@
// Adds the plugin class to the list of available TinyMCE plugins
tinymce.PluginManager.add("ssbuttons", tinymce.plugins.SSButtons);
})();
})();