renames...
authorColas Nahaboo <colas@nahaboo.net>
Mon, 13 Apr 2009 21:21:19 +0200
changeset 260c0f6e1eff0
parent 1 70d6654328e6
child 3 80524d4aaf34
renames...
README-SmartEditAddOn.txt
data/System/SmartEditAddOn.txt
data/System/SmartEditAddOnHelp.txt
data/System/SmartEditContrib.txt
lib/Foswiki/Contrib/SmartEditContrib.pm
lib/Foswiki/Contrib/SmartEditContrib/MANIFEST
lib/Foswiki/Contrib/SmartEditContrib/build.pl
pub/System/SmartEditAddOn/smartEditUI.js
pub/System/SmartEditAddOn/wikismartEngine.js
pub/System/SmartEditAddOn/wikismartEvents.js
templates/edit.smarteditor.tmpl
templates/preview.smarteditor.tmpl
templates/view.smarteditor.tmpl
     1.1 --- a/README-SmartEditAddOn.txt	Mon Apr 13 21:07:37 2009 +0200
     1.2 +++ b/README-SmartEditAddOn.txt	Mon Apr 13 21:21:19 2009 +0200
     1.3 @@ -1,9 +1,9 @@
     1.4  #################### QUICK INSTALL
     1.5  
     1.6 -Copy the contents to your TWiki install dir:
     1.7 -  cp -a data  pub  templates YOUR_TWIKI_DIR
     1.8 +Copy the contents to your Foswiki install dir:
     1.9 +  cp -a data  pub  templates YOUR_WIKI_DIR
    1.10  
    1.11 -To set the SmartEditorAddOn on all webs, go to your Main.TWikiPreferences 
    1.12 +To set the SmartEditorAddOn on all webs, go to your Main.SitePreferences 
    1.13  and set new skin as follows :
    1.14     * Set SKIN = smarteditor, pattern
    1.15     
    1.16 @@ -21,7 +21,7 @@
    1.17  
    1.18  #################### FULL DOCUMENTATION
    1.19  
    1.20 -Then follow SmartEditAddOn documentation on your wiki in TWiki.SmartEditAddOn
    1.21 +Then follow SmartEditAddOn documentation on your wiki in System.SmartEditAddOn
    1.22  
    1.23  Acknowledgements:
    1.24     * To Martin Rothbaum for the SmartEditAddon_alt-tab.patch
    1.25 @@ -33,7 +33,7 @@
    1.26  
    1.27  // Add in the header:
    1.28  
    1.29 -<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartstyle.css"/>
    1.30 +<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartstyle.css"/>
    1.31  
    1.32  
    1.33  For the edit template:
    1.34 @@ -41,14 +41,14 @@
    1.35  
    1.36  // Add the javascript in the header: (the last line is the same as view)
    1.37  
    1.38 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/mochikit/lib/MochiKit/MochiKit.js"></script>
    1.39 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartEngine.js"></script>
    1.40 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartActions.js"></script>
    1.41 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditUI.js"></script>
    1.42 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartEvents.js"></script>
    1.43 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditAutoCompletion.js"></script>
    1.44 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditDynamicDivision.js"></script>
    1.45 -<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartstyle.css"/>
    1.46 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/mochikit/lib/MochiKit/MochiKit.js"></script>
    1.47 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartEngine.js"></script>
    1.48 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartActions.js"></script>
    1.49 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditUI.js"></script>
    1.50 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartEvents.js"></script>
    1.51 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditAutoCompletion.js"></script>
    1.52 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditDynamicDivision.js"></script>
    1.53 +<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartstyle.css"/>
    1.54  
    1.55  // Add this just before the main <form:
    1.56  
    1.57 @@ -60,7 +60,7 @@
    1.58  
    1.59  <script type="text/javascript">
    1.60  // The script URL - with / at the end
    1.61 -wikismartScriptURL = '%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/';   
    1.62 +wikismartScriptURL = '%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/';   
    1.63  wikismartWikiHomeURL = '%SCRIPTURL%/view'; 
    1.64  wikismartWikiSkin = '%SKIN%';
    1.65  // Load all specific preferences
    1.66 @@ -68,12 +68,12 @@
    1.67  wikismartWebPreferences = ""+"%SMARTEDITSTRINGWEB%";
    1.68  wikismartCustomerPreferences = ""+"%SMARTEDITSTRINGUSERS%";
    1.69  // 3 following lines to add if you have an old smartedit addon installation
    1.70 -wikismartTWikiSiteIcons = ''+'%SMARTEDITICONSITE%';
    1.71 -wikismartTWikiWebIcons = ''+'%SMARTEDITICONWEB%';
    1.72 -wikismartTWikiUserIcons = ''+'%SMARTEDITICONUSER%';
    1.73 +wikismartFoswikiSiteIcons = ''+'%SMARTEDITICONSITE%';
    1.74 +wikismartFoswikiWebIcons = ''+'%SMARTEDITICONWEB%';
    1.75 +wikismartFoswikiUserIcons = ''+'%SMARTEDITICONUSER%';
    1.76  // End of copy
    1.77  wikismartCurrentWeb = "%WEB%";
    1.78 -wikismartTWikiIcons = '%SMARTEDITICONS%';
    1.79 +wikismartFoswikiIcons = '%SMARTEDITICONS%';
    1.80  // To know the id of the textarea ... if it is not 'topic'
    1.81  wikismartEdit('topic');
    1.82  </script>
     2.1 --- a/data/System/SmartEditAddOn.txt	Mon Apr 13 21:07:37 2009 +0200
     2.2 +++ b/data/System/SmartEditAddOn.txt	Mon Apr 13 21:21:19 2009 +0200
     2.3 @@ -1,6 +1,6 @@
     2.4  ---+!! <nop>Smart Edit Add-On
     2.5  
     2.6 -Smart Edit is a !JavaScript editor "&agrave; la wikipedia" for TWiki.
     2.7 +Smart Edit is a !JavaScript editor "&agrave; la wikipedia" for Foswiki.
     2.8  
     2.9  It takes an alternate approach to the WYSIWYG one, as its goals are
    2.10     * be useful, even for experienced wiki users
    2.11 @@ -9,12 +9,12 @@
    2.12     * be unobstrusive: as long as you do not use the toolbar, you are still
    2.13       using the traditional raw wiki editor
    2.14  
    2.15 -The aim is to assist TWiki.WikiSyntax editing by providing the following features as !JavaScript code:
    2.16 +The aim is to assist System.WikiSyntax editing by providing the following features as !JavaScript code:
    2.17  
    2.18 -   * TWiki syntax insertion
    2.19 +   * Foswiki syntax insertion
    2.20     * Keyboard shortcuts
    2.21     * Configurable menus
    2.22 -   * A dynamic TWiki link selection
    2.23 +   * A dynamic Foswiki link selection
    2.24     * A search bar
    2.25  
    2.26  Smart Edit is a !JavaScript application, working on *Firefox* , *Internet Explorer* and *Mozilla* . The code is clearly sub-optimal, and should be rewritten as it can be too slow on big topics. It is however much faster on firefox, meaning that you will be able to edit comfortably 15k topics with IE and 80k topics on Firefox. However, we use it as our default editor on our intranet.
    2.27 @@ -57,11 +57,11 @@
    2.28        * Smart Edit provides you a simple and intuitive interface to insert a link. You can also watch a preview of the given link.
    2.29  
    2.30     * *Internal links*
    2.31 -      * A dynamic interface help you to select and insert a TWiki link. You just have to select one web in a list, then choose a topic by its name with auto completion assistance.
    2.32 +      * A dynamic interface help you to select and insert a Foswiki link. You just have to select one web in a list, then choose a topic by its name with auto completion assistance.
    2.33  
    2.34  ---+++ Icons
    2.35  
    2.36 -*Configuration* via the TWiki variables SMARTEDITICONSITE, SMARTEDITICONWEB, SMARTEDITICONUSER that take a list of XML values of the ICON graphics and its LABEL like 
    2.37 +*Configuration* via the Foswiki macros SMARTEDITICONSITE, SMARTEDITICONWEB, SMARTEDITICONUSER that take a list of XML values of the ICON graphics and its LABEL like 
    2.38  <br> =&lt;tselement&gt;&lt;tsname&gt; LABEL &lt;/tsname&gt;&lt;tsstring&gt; ICON &lt;/tsstring&gt;&lt;/tselement&gt;=
    2.39  <br> e.g. =&lt;tselement&gt;&lt;tsname&gt; %<nop>ICON{lock}%&lt;/tsname&gt;&lt;tsstring&gt;%&lt;nop&gt;ICON{lock}%&lt;/tsstring&gt;&lt;/tselement&gt;=
    2.40  
    2.41 @@ -73,9 +73,9 @@
    2.42  
    2.43  ---+++ Insertion
    2.44  
    2.45 -*Basic insertion* : Smart Edit provides you some basic tags to insert that are =&lt;nop&gt;=, =&lt;br /&gt;= and =&lt;hr /&gt;=. But it is possible to configure personal strings to insert by editing a simple TWiki variable.
    2.46 +*Basic insertion* : Smart Edit provides you some basic tags to insert that are =&lt;nop&gt;=, =&lt;br /&gt;= and =&lt;hr /&gt;=. But it is possible to configure personal strings to insert by editing a simple Foswiki macro.
    2.47  
    2.48 -*Configuration* : via the TWiki variables SMARTEDITSTRINGSITE,  SMARTEDITSTRINGWEB, SMARTEDITSTRINGUSERS that take a list of XML values of the STRING to insert and its LABEL like 
    2.49 +*Configuration* : via the Foswiki macros SMARTEDITSTRINGSITE,  SMARTEDITSTRINGWEB, SMARTEDITSTRINGUSERS that take a list of XML values of the STRING to insert and its LABEL like 
    2.50  <br> =&lt;tselement&gt;&lt;tsname&gt; LABEL &lt;/tsname&gt;&lt;tsstring&gt; STRING &lt;/tsstring&gt;&lt;/tselement&gt;=
    2.51  <br> e.g. =&lt;tselement&gt;&lt;tsname&gt; Today's Date&lt;/tsname&gt;&lt;tsstring&gt; %<nop>GMTIME{$year-$mo-$day}%&lt;/tsstring&gt;&lt;/tselement&gt;=
    2.52  
    2.53 @@ -110,13 +110,13 @@
    2.54  
    2.55  ---++ Add-On Installation Instructions on pattern-based skins
    2.56     * unzip/untar the plugin at the root level of your foswiki install
    2.57 -   * If you use the default pattern skin, just put in your <nop>Main.TWikiPreferences a
    2.58 +   * If you use the default pattern skin, just put in your <nop>Main.SitePreferences a
    2.59  <verbatim>
    2.60        * Set SKIN = smarteditor, pattern
    2.61  </verbatim>
    2.62     * Note that it should be compatible with other pattern modifications,
    2.63       e.g. =Set SKIN = smarteditor, editdefault, pattern=
    2.64 -   * Add the following declarations to the same <nop>Main.TWikiPreferences topic. You can expand and/or modify these at will
    2.65 +   * Add the following declarations to the same <nop>Main.SitePreferences topic. You can expand and/or modify these at will
    2.66  <verbatim>
    2.67  ---++ Smartedit
    2.68  Warning: only use simple quotes ', not double quotes " in the following 3 vars:
    2.69 @@ -137,11 +137,12 @@
    2.70  
    2.71  ---++ Add-On Info
    2.72  
    2.73 -   * Set SHORTDESCRIPTION = Toolbar to help edit TWiki content
    2.74 +   * Set SHORTDESCRIPTION = Toolbar to help edit Foswiki content
    2.75  
    2.76 -|  Add-on Author: | TWiki:Main/GaelCrova (Special thanks to TWiki:Main/ColasNahaboo and TWiki:Main/FredericLuddeni for their help and feedback)|
    2.77 -|  Add-on Version: | 23 Jan 2008 (v2) |
    2.78 +|  Add-on Author: | Gael Crova (Special thanks to Colas Nahaboo and Frederic Luddeni for their help and feedback)|
    2.79 +|  Add-on Version: | 14 Apr 2009 (v3) |
    2.80  |  Change History: | <!-- versions below in reverse order -->&nbsp; |
    2.81 +| 14 Apr 2009: | v3: Version for Foswiki 1.0.4 |
    2.82  | 23 Jan 2008: | v2: Version for TWiki Freetown, 4.2.0 |
    2.83  |  18 Aug 2006: | IE Toolbar width fixed |
    2.84  |  16 Aug 2006: | Tab and SHIFT-TAB events disabled in Opera - Help in a specific topic with the viewprint template |
    2.85 @@ -156,10 +157,7 @@
    2.86  |  Other Dependencies: | none |
    2.87  |  Perl Version: | 5.005 |
    2.88  |  License: | GPL |
    2.89 -|  Add-on Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
    2.90 -|  Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
    2.91 -|  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal |
    2.92 -
    2.93 -__Related Topic:__ %TWIKIWEB%.TWikiAddOns
    2.94 +|  Add-on Home: | http://foswiki.org/Extensions/%TOPIC% |
    2.95 +|  Feedback: | http://foswiki.org/Extensions/%TOPIC%Dev |
    2.96  
    2.97  -- TWiki:Main/GaelCrova - 07 Aug 2006
     3.1 --- a/data/System/SmartEditAddOnHelp.txt	Mon Apr 13 21:07:37 2009 +0200
     3.2 +++ b/data/System/SmartEditAddOnHelp.txt	Mon Apr 13 21:21:19 2009 +0200
     3.3 @@ -36,11 +36,11 @@
     3.4  		* Smart Editor provides you a simple and intuitive interface to insert a link. You can also watch a preview of the given link.
     3.5  
     3.6  	* *Internal links*
     3.7 -		* A dynamic interface help you to select and insert a TWiki link. You just have to select one web in a list, then choose a topic by its name with auto completion assistance.
     3.8 +		* A dynamic interface help you to select and insert a Foswiki link. You just have to select one web in a list, then choose a topic by its name with auto completion assistance.
     3.9  
    3.10  ---+++ Icons
    3.11  
    3.12 -*Configuration* via the TWiki variables SMARTEDITICONSITE, SMARTEDITICONWEB, SMARTEDITICONUSER that take a list of XML values of the ICON graphics and its LABEL like 
    3.13 +*Configuration* via the Foswiki macros SMARTEDITICONSITE, SMARTEDITICONWEB, SMARTEDITICONUSER that take a list of XML values of the ICON graphics and its LABEL like 
    3.14  <br> =&lt;tselement&gt;&lt;tsname&gt; LABEL &lt;/tsname&gt;&lt;tsstring&gt; ICON &lt;/tsstring&gt;&lt;/tselement&gt;=
    3.15  <br> e.g. =&lt;tselement&gt;&lt;tsname&gt; %<nop>ICON{lock}%&lt;/tsname&gt;&lt;tsstring&gt;%&lt;nop&gt;ICON{lock}%&lt;/tsstring&gt;&lt;/tselement&gt;=
    3.16  
    3.17 @@ -50,10 +50,10 @@
    3.18  
    3.19  ---+++ Insertion
    3.20  
    3.21 -*Basic insertion* : Smart Editor provides you some basic tags to insert that are =&lt;nop&gt;=, =&lt;br /&gt;= and =&lt;hr /&gt;=. But it is possible to configure personal strings to insert by editing a simple TWiki variable.
    3.22 +*Basic insertion* : Smart Editor provides you some basic tags to insert that are =&lt;nop&gt;=, =&lt;br /&gt;= and =&lt;hr /&gt;=. But it is possible to configure personal strings to insert by editing a simple Foswiki macro.
    3.23  
    3.24  
    3.25 -*Configuration* : via the TWiki variables SMARTEDITSTRINGSITE,  SMARTEDITSTRINGWEB, SMARTEDITSTRINGUSERS that take a list of XML values of the STRING to insert and its LABEL like 
    3.26 +*Configuration* : via the Foswiki macros SMARTEDITSTRINGSITE,  SMARTEDITSTRINGWEB, SMARTEDITSTRINGUSERS that take a list of XML values of the STRING to insert and its LABEL like 
    3.27  <br> =&lt;tselement&gt;&lt;tsname&gt; LABEL &lt;/tsname&gt;&lt;tsstring&gt; STRING &lt;/tsstring&gt;&lt;/tselement&gt;=
    3.28  <br> e.g. =&lt;tselement&gt;&lt;tsname&gt; Today's Date&lt;/tsname&gt;&lt;tsstring&gt; %<nop>GMTIME{$year-$mo-$day}%&lt;/tsstring&gt;&lt;/tselement&gt;=
    3.29  
    3.30 @@ -92,13 +92,13 @@
    3.31  
    3.32  ---++++ The insert Menu
    3.33  
    3.34 -From <nop>TWikiPreferences (<nop>TWiki administrator), add or edit this variable like it follows:
    3.35 +From <nop>Main.SitePreferences (<nop>Foswiki administrator), add or edit this variable like it follows:
    3.36  
    3.37  <verbatim>
    3.38  	* Set SMARTEDITSTRINGSITE = <tselement><tsname>Table of content</tsname><tsstring>%<nop>TOC%</tsstring></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...
    3.39  </verbatim>
    3.40  
    3.41 -From <nop>Web Preferences (<nop>TWiki administrator), add or edit this variable like it follows:
    3.42 +From <nop>Web Preferences (<nop>Foswiki administrator), add or edit this variable like it follows:
    3.43  
    3.44  <verbatim>
    3.45  	* Set SMARTEDITSTRINGWEB  =   <tselement><tsname>Current web</tsname><tsstring>%<nop>WEB%</tsstring></tselement></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...
    3.46 @@ -110,4 +110,4 @@
    3.47  	* Set SMARTEDITSTRINGUSERS =  <tselement><tsname>My email</tsname><tsstring>toto@toto.com</tsstring></tselement></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...
    3.48  </verbatim>
    3.49  
    3.50 -The icon menu is set by the TWiki administrators.
    3.51 +The icon menu is set by the Foswiki administrators.
     4.1 --- a/data/System/SmartEditContrib.txt	Mon Apr 13 21:07:37 2009 +0200
     4.2 +++ b/data/System/SmartEditContrib.txt	Mon Apr 13 21:21:19 2009 +0200
     4.3 @@ -35,7 +35,7 @@
     4.4  
     4.5  ---++ Contrib Info
     4.6  
     4.7 -|  Author: | TWiki:Main/sven |
     4.8 +|  Author: | Sve Dovedoit |
     4.9  |  Copyright &copy;: | <!-- e.g. "2004, SlobSoft Gmbh, All Rights Reserved" --> |
    4.10  |  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
    4.11  |  Dependencies: | %$DEPENDENCIES% |
    4.12 @@ -48,4 +48,3 @@
    4.13  
    4.14  __Related Topics:__ %SYSTEMWEB%.DefaultPreferences, %USERSWEB%.SitePreferences
    4.15  
    4.16 --- TWiki:Main/sven - %DATE%
     5.1 --- a/lib/Foswiki/Contrib/SmartEditContrib.pm	Mon Apr 13 21:07:37 2009 +0200
     5.2 +++ b/lib/Foswiki/Contrib/SmartEditContrib.pm	Mon Apr 13 21:21:19 2009 +0200
     5.3 @@ -1,4 +1,4 @@
     5.4 -package TWiki::Contrib::SmartEditContrib;
     5.5 +package Foswiki::Contrib::SmartEditContrib;
     5.6  use vars qw( $VERSION );
     5.7  $VERSION = '$Rev: 1340 $';
     5.8  1;
     6.1 --- a/lib/Foswiki/Contrib/SmartEditContrib/MANIFEST	Mon Apr 13 21:07:37 2009 +0200
     6.2 +++ b/lib/Foswiki/Contrib/SmartEditContrib/MANIFEST	Mon Apr 13 21:21:19 2009 +0200
     6.3 @@ -1,30 +1,30 @@
     6.4 -data/TWiki/SmartEditContrib.txt NEW
     6.5 -lib/TWiki/Contrib/SmartEditContrib.pm NEW
     6.6 -pub/TWiki/SmartEditContrib/img/Thumbs.db NEW
     6.7 -pub/TWiki/SmartEditContrib/img/adjust.gif NEW
     6.8 -pub/TWiki/SmartEditContrib/img/bold.gif NEW
     6.9 -pub/TWiki/SmartEditContrib/img/bullist.gif NEW
    6.10 -pub/TWiki/SmartEditContrib/img/exthyperlink.png NEW
    6.11 -pub/TWiki/SmartEditContrib/img/h1.gif NEW
    6.12 -pub/TWiki/SmartEditContrib/img/h2.gif NEW
    6.13 -pub/TWiki/SmartEditContrib/img/h3.gif NEW
    6.14 -pub/TWiki/SmartEditContrib/img/h4.gif NEW
    6.15 -pub/TWiki/SmartEditContrib/img/h5.gif NEW
    6.16 -pub/TWiki/SmartEditContrib/img/h6.gif NEW
    6.17 -pub/TWiki/SmartEditContrib/img/help.gif NEW
    6.18 -pub/TWiki/SmartEditContrib/img/hr.gif NEW
    6.19 -pub/TWiki/SmartEditContrib/img/indent.gif NEW
    6.20 -pub/TWiki/SmartEditContrib/img/italic.gif NEW
    6.21 -pub/TWiki/SmartEditContrib/img/loupe.gif NEW
    6.22 -pub/TWiki/SmartEditContrib/img/loupem.gif NEW
    6.23 -pub/TWiki/SmartEditContrib/img/nop.png NEW
    6.24 -pub/TWiki/SmartEditContrib/img/numlist.gif NEW
    6.25 -pub/TWiki/SmartEditContrib/img/outdent.gif NEW
    6.26 -pub/TWiki/SmartEditContrib/img/redo.png NEW
    6.27 -pub/TWiki/SmartEditContrib/img/search.gif NEW
    6.28 -pub/TWiki/SmartEditContrib/img/signature.jpg NEW
    6.29 -pub/TWiki/SmartEditContrib/img/undo.png NEW
    6.30 -pub/TWiki/SmartEditContrib/img/verbatim.png NEW
    6.31 -pub/TWiki/SmartEditContrib/index.html NEW
    6.32 -pub/TWiki/SmartEditContrib/js/smartedit.js NEW
    6.33 +data/System/SmartEditContrib.txt NEW
    6.34 +lib/System/Contrib/SmartEditContrib.pm NEW
    6.35 +pub/System/SmartEditContrib/img/Thumbs.db NEW
    6.36 +pub/System/SmartEditContrib/img/adjust.gif NEW
    6.37 +pub/System/SmartEditContrib/img/bold.gif NEW
    6.38 +pub/System/SmartEditContrib/img/bullist.gif NEW
    6.39 +pub/System/SmartEditContrib/img/exthyperlink.png NEW
    6.40 +pub/System/SmartEditContrib/img/h1.gif NEW
    6.41 +pub/System/SmartEditContrib/img/h2.gif NEW
    6.42 +pub/System/SmartEditContrib/img/h3.gif NEW
    6.43 +pub/System/SmartEditContrib/img/h4.gif NEW
    6.44 +pub/System/SmartEditContrib/img/h5.gif NEW
    6.45 +pub/System/SmartEditContrib/img/h6.gif NEW
    6.46 +pub/System/SmartEditContrib/img/help.gif NEW
    6.47 +pub/System/SmartEditContrib/img/hr.gif NEW
    6.48 +pub/System/SmartEditContrib/img/indent.gif NEW
    6.49 +pub/System/SmartEditContrib/img/italic.gif NEW
    6.50 +pub/System/SmartEditContrib/img/loupe.gif NEW
    6.51 +pub/System/SmartEditContrib/img/loupem.gif NEW
    6.52 +pub/System/SmartEditContrib/img/nop.png NEW
    6.53 +pub/System/SmartEditContrib/img/numlist.gif NEW
    6.54 +pub/System/SmartEditContrib/img/outdent.gif NEW
    6.55 +pub/System/SmartEditContrib/img/redo.png NEW
    6.56 +pub/System/SmartEditContrib/img/search.gif NEW
    6.57 +pub/System/SmartEditContrib/img/signature.jpg NEW
    6.58 +pub/System/SmartEditContrib/img/undo.png NEW
    6.59 +pub/System/SmartEditContrib/img/verbatim.png NEW
    6.60 +pub/System/SmartEditContrib/index.html NEW
    6.61 +pub/System/SmartEditContrib/js/smartedit.js NEW
    6.62  templates/edit.smartedit.tmpl NEW
     7.1 --- a/lib/Foswiki/Contrib/SmartEditContrib/build.pl	Mon Apr 13 21:07:37 2009 +0200
     7.2 +++ b/lib/Foswiki/Contrib/SmartEditContrib/build.pl	Mon Apr 13 21:21:19 2009 +0200
     7.3 @@ -4,7 +4,7 @@
     7.4  # Example build class. Copy this file to the equivalent place in your
     7.5  # plugin or contrib and edit.
     7.6  #
     7.7 -# Read the comments at the top of lib/TWiki/Contrib/Build.pm for
     7.8 +# Read the comments at the top of lib/Foswiki/Contrib/Build.pm for
     7.9  # details of how the build process works, and what files you
    7.10  # have to provide and where.
    7.11  #
    7.12 @@ -21,11 +21,11 @@
    7.13  # Standard preamble
    7.14  BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ) }
    7.15  
    7.16 -use TWiki::Contrib::Build;
    7.17 +use Foswiki::Contrib::Build;
    7.18  
    7.19  # Declare our build package
    7.20  package BuildBuild;
    7.21 -use base qw( TWiki::Contrib::Build );
    7.22 +use base qw( Foswiki::Contrib::Build );
    7.23  
    7.24  sub new {
    7.25      my $class = shift;
     8.1 --- a/pub/System/SmartEditAddOn/smartEditUI.js	Mon Apr 13 21:07:37 2009 +0200
     8.2 +++ b/pub/System/SmartEditAddOn/smartEditUI.js	Mon Apr 13 21:21:19 2009 +0200
     8.3 @@ -139,7 +139,7 @@
     8.4  	var myimg = document.createElement("IMG");
     8.5  	myimg.src = wikismartScriptURL+"smiley.png";
     8.6  	var thedata = smartEditCreateTD();
     8.7 -	thedata.title = "Insert a TWiki Icon";
     8.8 +	thedata.title = "Insert an Icon";
     8.9  	thedata.className = "smarteditButtonTD"+smartEditorIECssClass;	
    8.10  	thedata.appendChild(myimg);
    8.11  	thedata.onclick = function () {
    8.12 @@ -806,7 +806,7 @@
    8.13  	scw = scw - 400;
    8.14  	sch = sch - 300;
    8.15  	
    8.16 -	var myAdd = wikismartWikiHomeURL+"/TWiki/SmartEditAddOnHelp";
    8.17 +	var myAdd = wikismartWikiHomeURL+"/System/SmartEditAddOnHelp";
    8.18  	
    8.19  	var newpage=open(myAdd,'popup','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes,left='+scw+',top='+sch+'');
    8.20  	newpage.document.close();
    8.21 @@ -1877,7 +1877,7 @@
    8.22  	var theDivToShow = smartEditorGetDynamicDivision(source);// Create a context menu under the source position
    8.23  	theDivToShow.id = "SmartEditInsertSmiley";
    8.24  	theDivToShow.className = "SmartEditInsertSmiley"+smartEditorIECssClass;
    8.25 -	theDivToShow.innerHTML = wikismartTWikiIcons;
    8.26 +	theDivToShow.innerHTML = wikismartFoswikiIcons;
    8.27  	//document.body.appendChild(theDivToShow);
    8.28  	wikismartTextarea.parentNode.appendChild(theDivToShow);
    8.29  	var smartAllIcons = theDivToShow.getElementsByTagName("IMG");
     9.1 --- a/pub/System/SmartEditAddOn/wikismartEngine.js	Mon Apr 13 21:07:37 2009 +0200
     9.2 +++ b/pub/System/SmartEditAddOn/wikismartEngine.js	Mon Apr 13 21:21:19 2009 +0200
     9.3 @@ -707,15 +707,15 @@
     9.4  }
     9.5  
     9.6  function wikismartParseCustomerSmileys(){
     9.7 -	if(wikismartTWikiUserIcons != null && wikismartTWikiUserIcons.length > 0){
     9.8 -		wikismartTWikiUserIcons = wikismartReplaceAll(wikismartTWikiUserIcons);
     9.9 -		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartTWikiUserIcons,"<tselement>");
    9.10 -		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartTWikiUserIcons,"</tselement>");
    9.11 +	if(wikismartFoswikiUserIcons != null && wikismartFoswikiUserIcons.length > 0){
    9.12 +		wikismartFoswikiUserIcons = wikismartReplaceAll(wikismartFoswikiUserIcons);
    9.13 +		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartFoswikiUserIcons,"<tselement>");
    9.14 +		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartFoswikiUserIcons,"</tselement>");
    9.15  		if(tsIndexesOfStartElements != null && tsIndexesOfEndElements != null && tsIndexesOfEndElements.length == tsIndexesOfStartElements.length){
    9.16  			
    9.17  			for(var i =0; i< tsIndexesOfEndElements.length;i++){
    9.18  				if(tsIndexesOfStartElements[i] < tsIndexesOfEndElements[i]){
    9.19 -					var tsElement = wikismartTWikiUserIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.20 +					var tsElement = wikismartFoswikiUserIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.21  					var elementIsValid = true;
    9.22  					
    9.23  					// Process for the element name
    9.24 @@ -763,15 +763,15 @@
    9.25  }
    9.26  
    9.27  function wikismartParseWebSmileys(){
    9.28 -	if(wikismartTWikiWebIcons != null && wikismartTWikiWebIcons.length > 0){
    9.29 -		wikismartTWikiWebIcons = wikismartReplaceAll(wikismartTWikiWebIcons);
    9.30 -		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartTWikiWebIcons,"<tselement>");
    9.31 -		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartTWikiWebIcons,"</tselement>");
    9.32 +	if(wikismartFoswikiWebIcons != null && wikismartFoswikiWebIcons.length > 0){
    9.33 +		wikismartFoswikiWebIcons = wikismartReplaceAll(wikismartFoswikiWebIcons);
    9.34 +		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartFoswikiWebIcons,"<tselement>");
    9.35 +		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartFoswikiWebIcons,"</tselement>");
    9.36  		if(tsIndexesOfStartElements != null && tsIndexesOfEndElements != null && tsIndexesOfEndElements.length == tsIndexesOfStartElements.length){
    9.37  			
    9.38  			for(var i =0; i< tsIndexesOfEndElements.length;i++){
    9.39  				if(tsIndexesOfStartElements[i] < tsIndexesOfEndElements[i]){
    9.40 -					var tsElement = wikismartTWikiWebIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.41 +					var tsElement = wikismartFoswikiWebIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.42  					var elementIsValid = true;
    9.43  					
    9.44  					// Process for the element name
    9.45 @@ -819,14 +819,14 @@
    9.46  }
    9.47  
    9.48  function wikismartParseSiteSmileys(){
    9.49 -	if(wikismartTWikiSiteIcons != null && wikismartTWikiSiteIcons.length > 0){
    9.50 -		wikismartTWikiSiteIcons = wikismartReplaceAll(wikismartTWikiSiteIcons);
    9.51 -		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartTWikiSiteIcons,"<tselement>");
    9.52 -		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartTWikiSiteIcons,"</tselement>");
    9.53 +	if(wikismartFoswikiSiteIcons != null && wikismartFoswikiSiteIcons.length > 0){
    9.54 +		wikismartFoswikiSiteIcons = wikismartReplaceAll(wikismartFoswikiSiteIcons);
    9.55 +		var tsIndexesOfStartElements = wikismartIndexsOf(wikismartFoswikiSiteIcons,"<tselement>");
    9.56 +		var tsIndexesOfEndElements = wikismartIndexsOf(wikismartFoswikiSiteIcons,"</tselement>");
    9.57  		if(tsIndexesOfStartElements != null && tsIndexesOfEndElements != null && tsIndexesOfEndElements.length == tsIndexesOfStartElements.length){
    9.58  			for(var i =0; i< tsIndexesOfEndElements.length;i++){
    9.59  				if(tsIndexesOfStartElements[i] < tsIndexesOfEndElements[i]){
    9.60 -					var tsElement = wikismartTWikiSiteIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.61 +					var tsElement = wikismartFoswikiSiteIcons.substring(tsIndexesOfStartElements[i]+11,tsIndexesOfEndElements[i]); 
    9.62  					var elementIsValid = true;
    9.63  					
    9.64  					// Process for the element name
    10.1 --- a/pub/System/SmartEditAddOn/wikismartEvents.js	Mon Apr 13 21:07:37 2009 +0200
    10.2 +++ b/pub/System/SmartEditAddOn/wikismartEvents.js	Mon Apr 13 21:21:19 2009 +0200
    10.3 @@ -114,7 +114,7 @@
    10.4  			}
    10.5  			else{
    10.6  				var tsTextFound = false;
    10.7 -				// TWiki smart Search Engine
    10.8 +				// Wiki smart Search Engine
    10.9  				if(wikismartTopSearchHasFocus || wikismartBottomSearchHasFocus){
   10.10  					wikismartTextToSearch = "";
   10.11  					// Si c'est celui du haut, alors le texte a chercher est celui la
   10.12 @@ -267,4 +267,4 @@
   10.13  	if(is_firefox){
   10.14  		wikismartTextarea.scrollTop = wikismartControlScrollTop;
   10.15  	}
   10.16 -}
   10.17 \ No newline at end of file
   10.18 +}
    11.1 --- a/templates/edit.smarteditor.tmpl	Mon Apr 13 21:07:37 2009 +0200
    11.2 +++ b/templates/edit.smarteditor.tmpl	Mon Apr 13 21:21:19 2009 +0200
    11.3 @@ -1,14 +1,14 @@
    11.4  %TMPL:INCLUDE{"edit"}%
    11.5  %TMPL:DEF{"templatestyle"}%
    11.6 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/TWikiJavascripts/twiki_edit.js"></script>
    11.7 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/mochikit/lib/MochiKit/MochiKit.js"></script>
    11.8 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartEngine.js"></script>
    11.9 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartActions.js"></script>
   11.10 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditUI.js"></script>
   11.11 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartEvents.js"></script>
   11.12 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditAutoCompletion.js"></script>
   11.13 -<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/smartEditDynamicDivision.js"></script>
   11.14 -<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartstyle.css"/>
   11.15 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/foswiki_edit.js"></script>
   11.16 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/mochikit/lib/MochiKit/MochiKit.js"></script>
   11.17 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartEngine.js"></script>
   11.18 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartActions.js"></script>
   11.19 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditUI.js"></script>
   11.20 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartEvents.js"></script>
   11.21 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditAutoCompletion.js"></script>
   11.22 +<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/smartEditDynamicDivision.js"></script>
   11.23 +<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartstyle.css"/>
   11.24  %TMPL:END%
   11.25  
   11.26  
   11.27 @@ -20,7 +20,7 @@
   11.28  %TMPL:P{"formend"}%
   11.29  %TMPL:P{"pagehelp_nojavascript"}%<script type="text/javascript">
   11.30  // The script URL - with / at the end
   11.31 -wikismartScriptURL = '%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/';   
   11.32 +wikismartScriptURL = '%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/';   
   11.33  wikismartWikiHomeURL = '%SCRIPTURL%/view'; 
   11.34  wikismartWikiSkin = '%SKIN%';
   11.35  // Load all specific preferences
   11.36 @@ -28,12 +28,12 @@
   11.37  wikismartWebPreferences = ""+"%SMARTEDITSTRINGWEB%";
   11.38  wikismartCustomerPreferences = ""+"%SMARTEDITSTRINGUSERS%";
   11.39  // 3 following lines to add if you have an old smartedit addon installation
   11.40 -wikismartTWikiSiteIcons = ""+'%SMARTEDITICONSITE%';
   11.41 -wikismartTWikiWebIcons = ""+'%SMARTEDITICONWEB%';
   11.42 -wikismartTWikiUserIcons = ""+'%SMARTEDITICONUSER%';
   11.43 +wikismartFoswikiSiteIcons = ""+'%SMARTEDITICONSITE%';
   11.44 +wikismartFoswikiWebIcons = ""+'%SMARTEDITICONWEB%';
   11.45 +wikismartFoswikiUserIcons = ""+'%SMARTEDITICONUSER%';
   11.46  // End of copy
   11.47  wikismartCurrentWeb = "%WEB%";
   11.48 -wikismartTWikiIcons = '%SMARTEDITICONS%';
   11.49 +wikismartFoswikiIcons = '%SMARTEDITICONS%';
   11.50  // To know the id of the textarea ... if it is not 'topic'
   11.51  wikismartEdit('topic');
   11.52  </script>%TMPL:END%
    12.1 --- a/templates/preview.smarteditor.tmpl	Mon Apr 13 21:07:37 2009 +0200
    12.2 +++ b/templates/preview.smarteditor.tmpl	Mon Apr 13 21:21:19 2009 +0200
    12.3 @@ -1,2 +1,2 @@
    12.4  %TMPL:INCLUDE{"preview"}%
    12.5 -%TMPL:DEF{"templatestyle"}%<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartstyle.css"/>%TMPL:END%
    12.6 +%TMPL:DEF{"templatestyle"}%<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartstyle.css"/>%TMPL:END%
    13.1 --- a/templates/view.smarteditor.tmpl	Mon Apr 13 21:07:37 2009 +0200
    13.2 +++ b/templates/view.smarteditor.tmpl	Mon Apr 13 21:21:19 2009 +0200
    13.3 @@ -1,2 +1,2 @@
    13.4  %TMPL:INCLUDE{"view"}%
    13.5 -%TMPL:DEF{"templatestyle"}%<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%TWIKIWEB%/SmartEditAddOn/wikismartstyle.css"/>%TMPL:END%
    13.6 +%TMPL:DEF{"templatestyle"}%<link rel="stylesheet" type="text/css" href="%PUBURLPATH%/%SYSTEMWEB%/SmartEditAddOn/wikismartstyle.css"/>%TMPL:END%