Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/examples/testbed.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/examples/testbed.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/examples/testbed.html 2 Nov 2005 09:20:04 -0000 1.2 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/examples/testbed.html 2 Feb 2007 21:04:45 -0000 1.3 @@ -13,10 +13,10 @@ -- of the file to remove the auto-example-generating code and allow for the -- use of the file as a boilerplate. -- - -- $HeadURL: svn://gogo@xinha.gogo.co.nz/repository/trunk/examples/full_example-body.html $ - -- $LastChangedDate: 2005-03-05 21:42:32 +1300 (Sat, 05 Mar 2005) $ - -- $LastChangedRevision: 35 $ - -- $LastChangedBy: gogo $ + -- $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/testbed.html $ + -- $LastChangedDate: 2007-01-20 11:24:36 +1300 (Sat, 20 Jan 2007) $ + -- $LastChangedRevision: 677 $ + -- $LastChangedBy: ray $ ---------------------------------------------------------------------------> @@ -54,10 +54,10 @@ xinha_plugins = xinha_plugins ? xinha_plugins : [ - + 'CharacterMap', 'SpellChecker', 'Linker' ]; // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :) - if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return; + if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return; /** STEP 2 *************************************************************** * Now, what are the names of the textareas you will be turning into @@ -76,13 +76,15 @@ * * If you want to modify the default config you might do something like this. * - * xinha_config = new HTMLArea.Config(); + * xinha_config = new Xinha.Config(); * xinha_config.width = 640; * xinha_config.height = 420; * *************************************************************************/ - xinha_config = xinha_config ? xinha_config : new HTMLArea.Config(); + xinha_config = xinha_config ? xinha_config : new Xinha.Config(); + xinha_config.fullPage = true; + xinha_config.CharacterMap.mode = 'panel'; /* // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL // otherwise it won't work! @@ -100,19 +102,19 @@ * * You can do this in two ways, either * - * xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); + * xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); * * if you want all the editor objects to use the same set of plugins, OR; * - * xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config); + * xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config); * xinha_editors['myTextArea'].registerPlugins(['Stylist','FullScreen']); * xinha_editors['anotherOne'].registerPlugins(['CSS','SuperClean']); * * if you want to use a different set of plugins for one or more of the * editors. ************************************************************************/ - xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins); + xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins); /** STEP 4 *************************************************************** * If you want to change the configuration variables of any of the @@ -130,19 +132,32 @@ * Xinha editors. ************************************************************************/ - HTMLArea.startEditors(xinha_editors); + Xinha.startEditors(xinha_editors); window.onload = null; } window.onload = xinha_init; - // window.onunload = HTMLArea.collectGarbageForIE; + // window.onunload = Xinha.collectGarbageForIE;