Koha/koha-tmpl/intranet-tmpl/prog/en/modules/help/edithelp.tt
Owen Leonard 77210d7435 Bug 9172 - Move TinyMCE library outside of language-specific directory
This patch removes the TinyMCE library from its language-specific
location and puts it in intranet-tmpl/lib. The most recent version
of TinyMCE is used, and the files added have been limited to
those required for proper functionality of the editor.

Files omitted: documentation, examples, unused plugins.

To test, visit each page which uses the TinyMCE editor: News
editing (tools/koha-news.pl), library editing (admin/branches.pl),
and online help editing (help/edithelp.pl). The editor should
look and function as before.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 81714f8141de147a9133944057b059df47160315
 on github.com/KohaAloha/Koha-Dev:bug_9172)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Corrected authorship and date
2013-04-15 09:31:39 -04:00

49 lines
1.9 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Online help</title>
<script language="javascript" type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">//<![CDATA[
tinyMCE.init({
mode : "textareas",
theme : "advanced",
content_css : "[% themelang %]/css/tinymce.css",
plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu",
theme_advanced_disable : "underline,strikethrough,styleselect,image",
theme_advanced_buttons1_add_before : "save,|",
theme_advanced_buttons2_add_before: "cut,copy,paste,|,search,replace,|",
theme_advanced_buttons3_add_before : "tablecontrols,|",
theme_advanced_buttons3_add : "advhr,|,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>
[% IF ( intranetstylesheet ) %]
<link rel="stylesheet" type="text/css" href="[% intranetstylesheet %]" />
[% ELSE %]
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/staff-global.css" />
[% END %]
[% IF ( intranetcolorstylesheet ) %]
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% intranetcolorstylesheet %]" />
[% END %]
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/help.css" />
</head>
<body id="help">
<h1>Online Help</h1>
[% IF ( error ) %]
<h5>[% error %]</h5>
[% END %]
<form action="/cgi-bin/koha/edithelp.pl" method="post">
<input type="hidden" name="referer" value="[% referer %]" />
<input type="hidden" name="type" value="[% type %]" />
<textarea name="help" cols="60" rows="20">[% help %]</textarea>
<fieldset class="action"><input type="submit" name="submit" class="submit" value="Submit" /> <a class="cancel" href="#" onclick="history.back(); return false;">Cancel</a></fieldset>
</form>
</body>
</html>