Support for CKEditor in Foundry

git-svn-id: https://svn.libreccm.org/ccm/trunk@4789 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2017-06-19 14:45:50 +00:00
parent b851db5f68
commit 9dc6d53ae6
1 changed files with 5 additions and 4 deletions

View File

@ -184,8 +184,8 @@
</xsl:template> </xsl:template>
<!-- DE Benutze FCKEditor --> <!-- DE Benutze CKEditor -->
<!-- EN Use FCKEditor --> <!-- EN Use CKEditor -->
<xsl:template match="bebop:ckeditor"> <xsl:template match="bebop:ckeditor">
<xsl:variable name="first-match"> <xsl:variable name="first-match">
@ -199,14 +199,15 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
<xsl:value-of select="concat('ckeditorConfig = \'', //bebop:ckeditor/bebop:config/@path ,'\'')" /> <!-- <xsl:value-of select="concat('ckeditorConfig = ''', //bebop:ckeditor/bebop:config/@path ,'''')" />-->
ckeditorConfig = '/assets/ckeditor/ccm-ckeditor-config.js';
window.onload = function() { window.onload = function() {
CKEditor.replaceAll( CKEditor.replaceAll(
'ckeditor', 'ckeditor',
customConfig: ckeditorConfig); customConfig: ckeditorConfig);
}; };
</script> </script>
</xsl:if>
<!-- EN End of CKeditor setup --> <!-- EN End of CKeditor setup -->
<xsl:call-template name="process-label"> <xsl:call-template name="process-label">