SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist stef25's Avatar
    Join Date
    Nov 2004
    Location
    belgium
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to efficiently implement 10 fckeditors on one page

    i have 10 textareas that need to be converted in to identical fckeditors (same toolbar, skin and dimensions) right now im repeating the block below 10 times where the just the new FCKeditor ('textareaID') is different. the page weighs in at over 700KB ... fckeditor.html, fckeditor_gecko.js, fckeditor_area.css, etc are all loaded multiple times

    im sure there is a better way of implementing this so each of those pages are only loaded once. does anyone know how?

    Code:
      var oFCKeditor = new FCKeditor( 'homeBody' ) ;
      oFCKeditor.BasePath = "fckeditor/" ;
      oFCKeditor.ToolbarSet = "Basic";
      oFCKeditor.Width = 500;
      oFCKeditor.Height = 300;
      oFCKeditor.ReplaceTextarea() ;
    I need someone to protect me from
    all the measures they take in order to protect me

  2. #2
    SitePoint Evangelist stef25's Avatar
    Join Date
    Nov 2004
    Location
    belgium
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nevermind, switched to tinymce which made that easier
    I need someone to protect me from
    all the measures they take in order to protect me


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •