I ran the following javascript in a page that contains several forms,
each contains a textare element.
i got an exception "undefined" in the second,
any ideas why?
javascript:
each contains a textare element.
i got an exception "undefined" in the second,
any ideas why?
javascript:
try
{
CKEDITOR.replaceAll( function( textarea, config )
{
if(textarea.className == "no_editor") return false;
var toolbar_line1 = ['Bold','Italic','Underline','-','NumberedList','BulletedList','-'
,'Outdent','Indent','-','JustifyRight','JustifyCenter','JustifyLeft'
,'JustifyBlock','-','BidiRtl','BidiLtr'];
var toolbar_line2 = [ 'Link','Unlink','Anchor' ];
var toolbar_line3 = ['Styles','Format','Font','FontSize' ,'-', 'TextColor','BGColor'];
config.toolbar = [toolbar_line1,toolbar_line2,toolbar_line3];
return true;
}
);
}
catch(err) { alert("Error: " + err.message); }
