View Single Post
  #29  
Old 03-01-2009, 12:28 AM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default Re: Adding the FCKeditor HTML Editor

Quote:
Originally Posted by shorelineoftahoe
Just an FYI for language variables:

*HOWEVER* Adding FCKeditor to all language variables can drastically slow down a page's load time. I recommend only adding it for the language variables that really need it, like txt_welcome. Here's the initial info I inserted at the end of the form called languagespostform (around line 200, right before </form>):

<script type="text/javascript">
var oFCKeditor = new FCKeditor('var_txt_welcome');
oFCKeditor.BasePath = "../fckeditor/";
oFCKeditor.Height="200";
oFCKeditor.ToolbarSet="Default";
oFCKeditor.ReplaceTextarea() ;
</script>

Thanks but this does not work for me in 4.1.8

I get ERROR: Textarea with this id number var_txt_welcome not found

in skin1/admin/main/languages.tpl.

Cheers
__________________
Chris G
Humble web designer
Version 4.07 - 4.45
Reply With Quote