i have about 9 textareas on my page that need to be made in to identical FckEditors - same skins, dimensions etc. right now im using the code below (but then 9 times) but im thinking there must be a way that requires less code since they all have the same settings?
many thanks for any advice on this ... stef
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'homeBody' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ToolbarSet = "Basic";
oFCKeditor.Width = 500;
oFCKeditor.Height = 300;
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'spotlightText' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ToolbarSet = "Basic";
oFCKeditor.Width = 500;
oFCKeditor.Height = 300;
oFCKeditor.ReplaceTextarea() ;
}
many thanks for any advice on this ... stef
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'homeBody' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ToolbarSet = "Basic";
oFCKeditor.Width = 500;
oFCKeditor.Height = 300;
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'spotlightText' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ToolbarSet = "Basic";
oFCKeditor.Width = 500;
oFCKeditor.Height = 300;
oFCKeditor.ReplaceTextarea() ;
}
Re: multiple identical forms on a page - how to implement?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+