Changes between Version 28 and Version 29 of NewbieGuide
- Timestamp:
- 01/26/08 23:02:38 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewbieGuide
v28 v29 34 34 If you are using a different directory, make sure you change both _editor_url and the location of !XinhaCore.js in the above code accordingly. 35 35 36 You will also need some config code included in the page too - there are two ways of doing this: 37 38 39 '''1)''' copying the text below into a new file called "my_config.js" and including this file using 36 You will also need some config code included in the page too. Either put the code below into a new file called "my_config.js" and including this file using 40 37 {{{ 41 38 #!text/html 42 39 <script type="text/javascript" src="/xinha/my_config.js"></script> 43 40 }}} 44 This allows you to use many X-Areas on many pages all with the same configuration. 45 46 '''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. '''You will need to surround the code below with <script type="text/javascript"> </script> tags if you use this second option.''' 41 or just copy it into your page and wrap it in <script type="text/javascript"> </script> tags - 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. 47 42 48 43 {{{
