JavaScript"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(New page: It might be valuable to show how to use jQuery to replace all textareas with class="fckeditor", I did it like this: <pre>jQuery(document).ready(function() { jQuery("textarea.fckeditor")...)
 
 
Line 8: Line 8:
 
   });
 
   });
 
});
 
});
</pre>
+
</pre>  
Then my html looks like:
+
Then my html looks like: <br>
 
<pre>&lt;html&gt;
 
<pre>&lt;html&gt;
 
   &lt;head&gt;
 
   &lt;head&gt;
Line 24: Line 24:
 
&lt;/html&gt;
 
&lt;/html&gt;
  
</pre>
+
</pre>  
 +
A see also API would be nice towards the bottom of this page<br>
 +
 
 +
See Also : [http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API FckEditor API]

Latest revision as of 23:13, 22 June 2008

It might be valuable to show how to use jQuery to replace all textareas with class="fckeditor", I did it like this:

jQuery(document).ready(function()
{
  jQuery("textarea.fckeditor").each(function()
  {
    var fck = new FCKeditor(this.id);
    fck.ReplaceTextarea();
  });
});

Then my html looks like:

<html>
  <head>
    <script src='../js/jquery.min.js' type='text/javascript'></script>
    <script src="/library/editor/FCKeditor/fckeditor.js" type="text/javascript"></script>
    <script src='../js/fck-inserter.js' type='text/javascript'></script>
  </head>
  <body>
    <form action="something" method="post">
      <textarea id='myFCKeditor' name='myFCKeditor' class='fckeditor' cols="60" rows="15"></textarea>
      <input type="submit" value="Save">
    </form>
  </body>
</html>

A see also API would be nice towards the bottom of this page

See Also : FckEditor API

This page was last edited on 22 June 2008, at 23:13.