* Standardeinrichtung CCMcoreXinhaConfig.js angepaßt: SmartReplace entfernt
 * XinhaEditor.xsl für Heirloom und Fallback angepaßt

git-svn-id: https://svn.libreccm.org/ccm/trunk@1406 8810af33-2d31-482b-a856-94f89814c4df
master
quasi 2011-12-28 08:51:38 +00:00
parent cfc341c617
commit d29337b7f1
3 changed files with 29 additions and 23 deletions

View File

@ -13,7 +13,7 @@ xinha_init=xinha_init?xinha_init:function(){
xinha_editors=xinha_editors?xinha_editors:["myTextArea","anotherOne"]; xinha_editors=xinha_editors?xinha_editors:["myTextArea","anotherOne"];
xinha_plugins=xinha_plugins?xinha_plugins:["CharacterMap","CharCounter", xinha_plugins=xinha_plugins?xinha_plugins:["CharacterMap","CharCounter",
"ContextMenu","DefinitionList","FindReplace","ListType","QuickTag", "ContextMenu","DefinitionList","FindReplace","ListType","QuickTag",
"SmartReplace","Stylist","TableOperations","UnFormat"]; "Stylist","TableOperations","UnFormat"];
if(!Xinha.loadPlugins(xinha_plugins,xinha_init)){ if(!Xinha.loadPlugins(xinha_plugins,xinha_init)){
return; return;
} }

View File

@ -6,8 +6,6 @@
version="1.0"> version="1.0">
<xsl:output method="html" indent="yes"/>
<!-- This is a backport from Mandalay v0.9 to support Xinha editor with the --> <!-- This is a backport from Mandalay v0.9 to support Xinha editor with the -->
<!-- generic theme. Xinha is the follow-up of the discontinued HTMLArea. --> <!-- generic theme. Xinha is the follow-up of the discontinued HTMLArea. -->
@ -24,18 +22,17 @@
<script type="text/javascript"> <script type="text/javascript">
_editor_url = "<xsl:value-of select="@editor_url"/>"; _editor_url = "<xsl:value-of select="@editor_url"/>";
<!-- There is no $lang variable in the original theme, so this is hardcodes to english --> _editor_lang = "en";
_editor_lang ="<xsl:value-of select="en"/>"; <!-- _editor_skin = "silva";-->
<!-- DE Definiere, welche Textareas zu Xinha-Editoren werden sollen --> <!-- DE Definiere, welche Textareas zu Xinha-Editoren werden sollen -->
<!-- EN Define all textares which should become xinha editors --> <!-- EN Define all textares which should become xinha editors -->
xinha_editors = [ xinha_editors = [
<xsl:for-each select="//bebop:xinha"> <xsl:for-each select="//bebop:xinha">
'ta_<xsl:value-of select="@name"/>'<xsl:if test="position() != last()">, </xsl:if> 'ta_<xsl:value-of select="@name"/>'<xsl:if test="position() != last()">, </xsl:if>
</xsl:for-each> </xsl:for-each>
]; ];
<!-- DE Lade die angegebenen Plugins falls angegeben --> <!-- DE Lade die angegebenen Plugins falls angegeben -->
<!-- EN Load the mentioned plugins if any--> <!-- EN Load the mentioned plugins if any-->
xinha_plugins = null; xinha_plugins = null;
@ -47,14 +44,21 @@
]; ];
</xsl:if> </xsl:if>
</script> </script>
<!-- DE Lade die externe JavaScript-Datei fuer Xinha --> <!-- DE Lade die externe JavaScript-Datei für Xinha -->
<script type="text/javascript" src="{@editor_src}"/> <script type="text/javascript" src="{@editor_src}"/>
<!-- DE Lade die angegebene Konfiguration --> <!-- DE Lade die angegebene Konfiguration -->
<script type="text/javascript"> <script type="text/javascript">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="bebop:config[@name='Xinha.Config']/@path"/> <xsl:choose>
<xsl:when test="bebop:config[@name='XinhaConfig']">
<xsl:value-of select="bebop:config[@name='XinhaConfig']/@path"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="bebop:config[@name='Xinha.Config']/@path"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
</script> </script>
@ -64,5 +68,4 @@
<xsl:value-of disable-output-escaping="no" select="text()"/> <xsl:value-of disable-output-escaping="no" select="text()"/>
</textarea> </textarea>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -6,8 +6,6 @@
version="1.0"> version="1.0">
<xsl:output method="html" indent="yes"/>
<!-- This is a backport from Mandalay v0.9 to support Xinha editor with the --> <!-- This is a backport from Mandalay v0.9 to support Xinha editor with the -->
<!-- generic theme. Xinha is the follow-up of the discontinued HTMLArea. --> <!-- generic theme. Xinha is the follow-up of the discontinued HTMLArea. -->
@ -24,18 +22,17 @@
<script type="text/javascript"> <script type="text/javascript">
_editor_url = "<xsl:value-of select="@editor_url"/>"; _editor_url = "<xsl:value-of select="@editor_url"/>";
<!-- There is no $lang variable in the original theme, so this is hardcodes to english --> _editor_lang = "en";
_editor_lang ="<xsl:value-of select="en"/>"; <!-- _editor_skin = "silva";-->
<!-- DE Definiere, welche Textareas zu Xinha-Editoren werden sollen --> <!-- DE Definiere, welche Textareas zu Xinha-Editoren werden sollen -->
<!-- EN Define all textares which should become xinha editors --> <!-- EN Define all textares which should become xinha editors -->
xinha_editors = [ xinha_editors = [
<xsl:for-each select="//bebop:xinha"> <xsl:for-each select="//bebop:xinha">
'ta_<xsl:value-of select="@name"/>'<xsl:if test="position() != last()">, </xsl:if> 'ta_<xsl:value-of select="@name"/>'<xsl:if test="position() != last()">, </xsl:if>
</xsl:for-each> </xsl:for-each>
]; ];
<!-- DE Lade die angegebenen Plugins falls angegeben --> <!-- DE Lade die angegebenen Plugins falls angegeben -->
<!-- EN Load the mentioned plugins if any--> <!-- EN Load the mentioned plugins if any-->
xinha_plugins = null; xinha_plugins = null;
@ -47,14 +44,21 @@
]; ];
</xsl:if> </xsl:if>
</script> </script>
<!-- DE Lade die externe JavaScript-Datei fuer Xinha --> <!-- DE Lade die externe JavaScript-Datei für Xinha -->
<script type="text/javascript" src="{@editor_src}"/> <script type="text/javascript" src="{@editor_src}"/>
<!-- DE Lade die angegebene Konfiguration --> <!-- DE Lade die angegebene Konfiguration -->
<script type="text/javascript"> <script type="text/javascript">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="bebop:config[@name='Xinha.Config']/@path"/> <xsl:choose>
<xsl:when test="bebop:config[@name='XinhaConfig']">
<xsl:value-of select="bebop:config[@name='XinhaConfig']/@path"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="bebop:config[@name='Xinha.Config']/@path"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
</script> </script>
@ -64,5 +68,4 @@
<xsl:value-of disable-output-escaping="no" select="text()"/> <xsl:value-of disable-output-escaping="no" select="text()"/>
</textarea> </textarea>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>