Changes between Version 11 and Version 12 of Documentation/OldNewbieGuide


Ignore:
Timestamp:
03/11/05 19:23:15 (15 years ago)
Author:
akaEdge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OldNewbieGuide

    v11 v12  
    1515Now you need the following code on your page, to turn an existing <textarea> into the WYSIWYG X-Area. 
    1616 
    17 From the top down, put this code in your <head> </head> section: 
    18  
    19 '''<head>''' 
     17From the top down, put this code on your pages somewhere (if possible in your <head></head> section): 
    2018 
    2119{{{ 
     
    2927If you are using a different directory, make sure you change the location of htmlarea.js in the above code accordingly. 
    3028 
    31 You will also need some config code in the <head> too - there are two ways of doing this: 
     29You will also need some config code included in the page too - there are two ways of doing this: 
    3230 
    3331 
     
    3836 This allows you to use many X-Areas on many pages all with the same configuration. 
    3937 
    40 '''2)''' just copy the code below into your <head></head> section - this will need to be done on every page you want an editor on, and will allow you to customise each one as you want. 
     38'''2)''' just copy the code below into your page - this will need to be done on every page you want an editor on, and will allow you to customise each one as you want. 
    4139 
    4240{{{ 
     
    151149it can be the same as the name - just make sure there is only one thing on the page with that ID though! 
    152150 
    153 Now in the code you pasted into the head above (or in your "xinha_config.js" file if you did it that way) you need to edit the bit labelled "Step 2" which lists what editors need to be converted. 
     151Now in the code you pasted into the head above (or in your "my_config.js" file if you did it that way) you need to edit the bit labelled "Step 2" which lists what editors need to be converted. 
    154152 
    155153In the example it lists two: 'myTextArea' and 'anotherOne' - you will need to change 'myTextArea' to whatever you set the ID of your textarea to - in this example we set it to 'newbiearea1'. You will also need to delete the reference to 'anotherOne' as you are currently only converting one area! (remember here that these values are comma seperated BUT there is no comma after the last value, so your code should look like this: