Line 0
Link Here
|
|
|
1 |
<!-- |
2 |
#writen 13th Nov 2010 by kmkale@anantcorp.com |
3 |
#inc file to configure the elRTE WYSWYG editor from elrte.org |
4 |
#By using the opts array you can control the appearance of the buttons as well as size of the text area. |
5 |
#For options of the opts array and others to control the appearance of the editor, refer to eltre.org. |
6 |
#I have tweaked the eltre css file elrte.full.css to get the buttons to display properly in Koha. |
7 |
#I have also removed the src directory, the changelog, readme and eltre.html files to reduce patch size and get rid of whitespace errors. |
8 |
#I have also used a sed one liner on the eltre dir to get rid of trailing whitespace errors. |
9 |
#This header file is inserted in the koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl |
10 |
# Copyright Koustubha Kale |
11 |
# |
12 |
# This file is part of Koha. |
13 |
# |
14 |
# Koha is free software; you can redistribute it and/or modify it under the |
15 |
# terms of the GNU General Public License as published by the Free Software |
16 |
# Foundation; either version 2 of the License, or (at your option) any later |
17 |
# version. |
18 |
# |
19 |
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
20 |
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
21 |
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
22 |
# |
23 |
# You should have received a copy of the GNU General Public License along |
24 |
# with Koha; if not, write to the Free Software Foundation, Inc., |
25 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
26 |
--> |
27 |
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script> |
28 |
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/elrte.full.js" type="text/javascript" charset="utf-8"></script> |
29 |
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript" charset="utf-8"></script> |
30 |
|
31 |
<link rel="stylesheet" href="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/css/elrte.full.css" type="text/css" media="screen" charset="utf-8"> |
32 |
<link rel="stylesheet" href="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/ui-themes/smoothness/jquery-ui-1.8.5.custom.css" type="text/css" media="screen" charset="utf-8"> |
33 |
|
34 |
<script type="text/javascript" charset="utf-8"> |
35 |
//<![CDATA[ |
36 |
$().ready(function() { |
37 |
$("#header_search").find("ul").removeClass(); |
38 |
$("#header_search").find("ul").addClass("ui-tabs-nav"); |
39 |
var opts = { |
40 |
stripWhiteSpace : 'false', |
41 |
cssClass : 'el-rte', |
42 |
// lang : 'ru', |
43 |
height : 450, |
44 |
toolbar : 'complete', |
45 |
//toolbar : 'tiny', |
46 |
cssfiles : ['<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/css/elrte-inner.css'] |
47 |
} |
48 |
$('#new').elrte(opts); |
49 |
}) |
50 |
//]]> |
51 |
</script> |