[Koha-patches] [PATCH] [SIGNED-OFF] Bug 5401, WYSIWYG for Koha news: Testing TinyMCE
Magnus Enger
magnus at enger.priv.no
Wed Mar 30 13:42:48 CEST 2011
From: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Magnus Enger <magnus at enger.priv.no>
---
.../prog/en/modules/tools/koha-news.tmpl | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
index 9ce264c..86661f8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
@@ -13,6 +13,25 @@ $(document).ready(function() {
});
//]]>
</script>
+<script language="javascript" type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
+<script language="javascript" type="text/javascript">
+tinyMCE.init({
+ mode : "textareas",
+ theme : "advanced",
+ plugins : "table,save,advhr,advlink,iespell,searchreplace,print,contextmenu",
+ theme_advanced_disable : "underline,strikethrough,styleselect,image",
+ theme_advanced_buttons1_add_before : "save,separator",
+ theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
+ theme_advanced_buttons3_add_before : "tablecontrols,separator",
+ theme_advanced_buttons3_add : "iespell,advhr,separator,print",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_path_location : "bottom",
+ plugin_insertdate_dateFormat : "%Y-%m-%d",
+ plugin_insertdate_timeFormat : "%H:%M:%S",
+ apply_source_formatting : true
+});
+</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
--
1.5.6.5
More information about the Koha-patches
mailing list