changeset 3952:8e04faa4aaa5

cleanup unnecessary fckeditor directory and fix javascript error
author Byeongweon [tasyblue@gmail.com]
date Sat, 21 Jun 2008 17:17:43 +0900
parents c1bddba80ebd
children 61c3a8a4f25d
files wiki/htdocs/applets/moinFCKplugins/restrict_actions/fckplugin.js wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/applets/moinFCKplugins/restrict_actions/fckplugin.js	Mon Jun 09 02:10:32 2008 +0900
+++ b/wiki/htdocs/applets/moinFCKplugins/restrict_actions/fckplugin.js	Sat Jun 21 17:17:43 2008 +0900
@@ -134,6 +134,8 @@
 
 var StyleButtonCommand = function(stylename, unique)
 {
+  this.StylesLoader = new FCKStylesLoader() ; 
+  this.StylesLoader.Load( FCKConfig.StylesXmlPath ) ; 
   this.style = this.StylesLoader.Styles[stylename];
   this.unique = unique;
 }
--- a/wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js	Mon Jun 09 02:10:32 2008 +0900
+++ b/wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js	Sat Jun 21 17:17:43 2008 +0900
@@ -323,9 +323,10 @@
 
   // Check surrounding nodes
   var oElement = oStart;
+
   while (oElement)
   {
-    if (pattern.test(oElement.nodeName))
+    if (pattern != null && pattern.test(oElement.nodeName))
       { 
         //Alert("Start:" + oStart.nodeName + ':' + oElement.nodeName + 
         //      ':' + oEnd.nodeName);
@@ -336,7 +337,7 @@
   oElement = oEnd;
   while (oElement)
   {
-    if (pattern.test(oElement.nodeName))
+    if (pattern != null && pattern.test(oElement.nodeName))
       { 
         //Alert("End:" + oStart.nodeName + ':' + oElement.nodeName + 
         //      ':' + oEnd.nodeName);