window.onload = function () { var allPageTags = document.getElementsByTagName("textarea"); var editors = new Array(); for (i = 0; i < allPageTags.length; i++) { if (allPageTags[i].className == "vLargeTextField") { var oFCKeditor = new FCKeditor(allPageTags[i].id); oFCKeditor.Config["CustomConfigurationsPath"] = "/static/fckeditor/custom/myconfig.js"; oFCKeditor.BasePath = "/static/fckeditor/"; oFCKeditor.Height = "400"; oFCKeditor.ReplaceTextarea(); editors.push(oFCKeditor); } } };