@@ -, +, @@ --- .../prog/en/js/elrte-1.1/css/elrte-inner.css | 95 + .../prog/en/js/elrte-1.1/css/elrte.full.css | 524 ++ .../prog/en/js/elrte-1.1/images/elrte-toolbar.png | Bin 0 -> 28256 bytes .../prog/en/js/elrte-1.1/images/google-maps.png | Bin 0 -> 2007 bytes .../prog/en/js/elrte-1.1/images/loading.gif | Bin 0 -> 1279 bytes .../prog/en/js/elrte-1.1/images/media-director.png | Bin 0 -> 2011 bytes .../prog/en/js/elrte-1.1/images/media-flash.png | Bin 0 -> 2054 bytes .../en/js/elrte-1.1/images/media-quicktime.png | Bin 0 -> 2639 bytes .../en/js/elrte-1.1/images/media-realaudio.png | Bin 0 -> 1609 bytes .../prog/en/js/elrte-1.1/images/media-rutube.png | Bin 0 -> 2442 bytes .../prog/en/js/elrte-1.1/images/media-vimeo.png | Bin 0 -> 1501 bytes .../prog/en/js/elrte-1.1/images/media-winmedia.png | Bin 0 -> 2449 bytes .../prog/en/js/elrte-1.1/images/media-youtube.png | Bin 0 -> 1700 bytes .../prog/en/js/elrte-1.1/images/pagebreak.gif | Bin 0 -> 54 bytes .../prog/en/js/elrte-1.1/images/pixel.gif | Bin 0 -> 43 bytes .../en/js/elrte-1.1/images/smileys/evilgrin.png | Bin 0 -> 797 bytes .../prog/en/js/elrte-1.1/images/smileys/grin.png | Bin 0 -> 822 bytes .../prog/en/js/elrte-1.1/images/smileys/happy.png | Bin 0 -> 824 bytes .../prog/en/js/elrte-1.1/images/smileys/smile.png | Bin 0 -> 787 bytes .../en/js/elrte-1.1/images/smileys/surprised.png | Bin 0 -> 780 bytes .../prog/en/js/elrte-1.1/images/smileys/tongue.png | Bin 0 -> 820 bytes .../en/js/elrte-1.1/images/smileys/unhappy.png | Bin 0 -> 778 bytes .../prog/en/js/elrte-1.1/images/smileys/waii.png | Bin 0 -> 785 bytes .../prog/en/js/elrte-1.1/images/smileys/wink.png | Bin 0 -> 801 bytes .../prog/en/js/elrte-1.1/images/yandex-maps.png | Bin 0 -> 1667 bytes .../prog/en/js/elrte-1.1/js/elrte.full.js | 8646 ++++++++++++++++++++ .../prog/en/js/elrte-1.1/js/elrte.min.js | 9 + .../en/js/elrte-1.1/js/i18n/elrte.YOUR_LANG.js | 211 + .../prog/en/js/elrte-1.1/js/i18n/elrte.ar.js | 195 + .../prog/en/js/elrte-1.1/js/i18n/elrte.cs.js | 169 + .../prog/en/js/elrte-1.1/js/i18n/elrte.de.js | 168 + .../prog/en/js/elrte-1.1/js/i18n/elrte.es.js | 167 + .../prog/en/js/elrte-1.1/js/i18n/elrte.fa.js | 168 + .../prog/en/js/elrte-1.1/js/i18n/elrte.fr.js | 167 + .../prog/en/js/elrte-1.1/js/i18n/elrte.hu.js | 201 + .../prog/en/js/elrte-1.1/js/i18n/elrte.it.js | 167 + .../prog/en/js/elrte-1.1/js/i18n/elrte.jp.js | 187 + .../prog/en/js/elrte-1.1/js/i18n/elrte.lv.js | 179 + .../prog/en/js/elrte-1.1/js/i18n/elrte.nl.js | 199 + .../prog/en/js/elrte-1.1/js/i18n/elrte.pl.js | 168 + .../prog/en/js/elrte-1.1/js/i18n/elrte.ru.js | 211 + .../prog/en/js/elrte-1.1/js/i18n/elrte.ua.js | 201 + .../prog/en/js/elrte-1.1/js/i18n/elrte.zh_TW.js | 167 + .../prog/en/js/elrte-1.1/js/jquery-1.4.2.min.js | 154 + .../js/elrte-1.1/js/jquery-ui-1.8.5.custom.min.js | 284 + .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../smoothness/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../smoothness/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 5355 bytes .../smoothness/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../smoothness/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../smoothness/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../smoothness/jquery-ui-1.8.5.custom.css | 362 + 59 files changed, 12999 insertions(+), 0 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte-inner.css create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte.full.css create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/elrte-toolbar.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/google-maps.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/loading.gif create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-director.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-flash.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-quicktime.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-realaudio.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-rutube.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-vimeo.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-winmedia.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/media-youtube.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/pagebreak.gif create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/pixel.gif create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/evilgrin.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/grin.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/happy.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/smile.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/surprised.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/tongue.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/unhappy.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/waii.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/smileys/wink.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/images/yandex-maps.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/elrte.full.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/elrte.min.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.YOUR_LANG.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.ar.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.cs.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.de.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.es.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.fa.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.fr.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.hu.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.it.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.jp.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.lv.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.nl.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.pl.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.ru.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.ua.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/i18n/elrte.zh_TW.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/jquery-1.4.2.min.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/jquery-ui-1.8.5.custom.min.js create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-icons_222222_256x240.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-icons_2e83ff_256x240.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-icons_454545_256x240.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-icons_888888_256x240.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/images/ui-icons_cd0a0a_256x240.png create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/ui-themes/smoothness/jquery-ui-1.8.5.custom.css --- a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte-inner.css +++ a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte-inner.css @@ -0,0 +1,95 @@ + +body.el-rte-rtl, body.el-rte-rtl * { + direction:rtl; +} + +body.el-rte-structure table, +body.el-rte-structure caption, +body.el-rte-structure td, +body.el-rte-structure th, +body.el-rte-structure p, +body.el-rte-structure div, +body.el-rte-structure blockquote +{ outline:1px dotted #99ccff; } + +body.el-rte-structure a[name] { + display:inline-block; + vertical-align:baseline; + width:12px; + height:12px; + border:1px dotted #ccc; + background: url('../images/elrte-toolbar.png') -564px -8px no-repeat; +} +img { cursor: default; } + +img.elrte-webkit-hl { outline:1px dashed #777; } + +.elrtebm { +} + +.elrte-media-x-shockwave-flash, +.elrte-media-quicktime, +.elrte-media-x-director, +.elrte-media-x-mplayer2, +.elrte-media-x-pn-realaudio-plugin, +.elrte-media-youtube, +.elrte-media-rutube, +.elrte-media-vimeo, +.elrte-yandex-maps, +.elrte-google-maps, +.elrte-media { + border:1px solid #ccc; + background:#eee url(../images/media-flash.png) center center no-repeat; +} +.elrte-media-x-shockwave-flash { + background-image:url(../images/media-flash.png); +} +.elrte-media-youtube { + background-image:url(../images/media-youtube.png); +} +.elrte-media-vimeo { + background-image:url(../images/media-vimeo.png); +} +.elrte-media-rutube { + background-image:url(../images/media-rutube.png); +} +.elrte-media-quicktime { + background-image:url(../images/media-quicktime.png); +} +.elrte-media-x-director { + background-image:url(../images/media-director.png); +} +.elrte-media-x-mplayer2 { + background-image:url(../images/media-winmedia.png); +} +.elrte-media-x-pn-realaudio-plugin { + background-image:url(../images/media-realaudio.png); +} +.elrte-yandex-maps { + background-image:url(../images/yandex-maps.png); +} +.elrte-google-maps { + display: block; + background-image:url(../images/google-maps.png); +} + +.elrte-pagebreak { + + display:block; + clear:both; + width:100%; + height:7px; + outline:1px dotted #777; + outline-left:none; + outline-right:none; + background:transparent url(../images/pagebreak.gif) center center no-repeat; +} + +.elrte-pagebreak:after { + content: "."; + display: block; + font-size:0; + height: 0; + clear: both; + visibility: hidden; +} --- a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte.full.css +++ a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/css/elrte.full.css @@ -0,0 +1,524 @@ +/*! + * elRTE WYSIWYG HTML-editor + * Version 1.1 (2010-09-20) + * http://elrte.org + * + * Copyright 2010, Studio 42 Ltd. + * Licensed under a 3 clauses BSD license + */ + +@charset "UTF-8"; +a { outline: none; } + +/************* clearfix **********************/ + +.clearfix:after { + content: "."; + display: block; + font-size:0; + height: 0; + clear: both; + visibility: hidden; +} + +.clearfix { display: block; } + +.rounded-2 { -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; } +.rounded-3 { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } +.rounded-4 { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } +.rounded-5 { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; } +.rounded-6 { -moz-border-radius: 6px; -webkit-border-radius: 5px; border-radius: 6px; } +.rounded-7 { -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; } +.rounded-left-3 { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; } +.rounded-bottom-7 { -moz-border-radius-bottomleft:7px; -moz-border-radius-bottomright:7px; -webkit-border-bottom-left-radius: 7px;-webkit-border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px;} + + +.ui-widget { font-size:.9em;} +.ui-dialog .ui-dialog-buttonpane button { padding: .1em .6em .2em .6em; } + +/* colorpicker "button" */ +.el-colorpicker { + width : 16px; + height : 16px; + border:1px solid #ccc; + position:relative; + cursor:default; +} + +/* colors palette */ +.el-palette { + width: 182px; + border:1px solid #ccc; + background:#fff; + padding:3px 2px 3px 3px; + z-index:10000; /* fight with ui.dialog 0_o */ + position:absolute; + top:16px; + left:0; +} + +/* color cell in palette */ +.el-palette .color { + float:left; + width:14px; + height:14px; + line-height:1px; + border-top: 1px solid #eee; + border-left:1px solid #eee; +} + +/* side below color cells */ +.el-palette .panel { + border-top:1px solid #ccc; + margin-top:7px; + padding:5px 3px 5px 3px; +} + +/* "window" with selected color */ +.el-palette .panel .preview { + float:right; + width:18px; + height:18px; + border:1px solid #ccc; +} + +/* color value text field */ +.el-palette .panel input { + border:1px solid #ccc; +} +/* dialog container */ +.ui-widget .el-dialogform { + padding:5px 3px; + +} + +.ui-widget .el-dialogform-rtl { + direction: rtl; +} + +.ui-widget .el-dialogform-rtl .ui-tabs-nav li { + float:right; +} + +.el-dialogform div.tab:hover { background:transparent; } +.ui-dialog .ui-dialog-title, .ui-dialog .ui-dialog-content { + font-size:.9em; +} + +/* tabs nav */ +.ui-tabs .ui-tabs-nav li a { + padding:.2em .7em; +} + +/* tab container */ +.el-dialogform .tab { + padding:5px 0 12px 0; + border:none; +} +/* line separator */ +.el-dialogform .separator { + border-top:1px solid #ccc; + margin: 5px 2px; +} + +/* table in dialog or in tab */ +.el-dialogform table { + width:100%; + border: none; +} + +.el-dialogform table td { + padding: 2px; +} + +.el-dialogform input, .el-dialogform textarea { + border:1px solid #ccc; +} + +.el-dialogform select { + padding:0; +/* font-size:11px;*/ +} + +.el-dialogform .spinner { + background:url(../images/loading.gif) 50% 50% no-repeat; + text-align:center; + width:150px; + height:50px; + margin:10px auto; + padding-top:33px; + font-weight:bold; +} +.el-dialogform-error { + background: #fee; color:#ff0000; border: 2px #844 solid; padding: 10px; margin-bottom: 1em 0; + +} +.el-dialogform-message { + background: #efe; color: #040; border: 2px #484 solid; padding: 10px; margin-bottom: 1em 0; +} + + +.el-dialogform table td .el-borderselect table { + width:auto; +} + +.el-dialogform table td .el-borderselect table td { + padding-left :0; + padding-right:2px; +} +.el-paddinginput { + display: block; + white-space: nowrap; +} +.el-paddinginput input { + margin :0 1px 0 0; + border:1px solid #ccc; +} +.el-paddinginput select { + padding:0; +}/* container for elselect */ +.el-select { + height:17px; + width : 110px; + border:1px solid #ccc; + cursor: default; + position:relative; +} +.el-select.hover { + background-color:#eee; +} + +/* selected element */ +.el-select label { + height:17px; + line-height:17px; +/* font-size:.92em;*/ + padding: 0 5px; + margin: 0 12px 0 0; + display:block; + white-space:nowrap; + overflow:hidden; + background: #fff; + border-right:1px solid #ccc; +} +/* drop-down list */ +.el-select .list { + border:1px solid #ccc; + display:block; + position:absolute; + overflow:auto; + background:#fff; + z-index:1000; +/* height:1610px*/ +} +/* drop-down list item */ +.el-select .list div { + position:relative; + padding:3px 25px 3px 7px; + border-bottom:1px solid #eee; +} +/* drop-down list item hovered */ +.el-select .list .hover { + background:#efefef; +} +/* drop-down list item selected */ +.el-select .list .active { + background-color:#c3dbef; +} +/* any elements in drop-down list item */ +.el-select .list div * { + padding:0; + margin:0; + border:none; + white-space:nowrap; + display:block; +} + +/* контейнер */ +.el-rte { + font-family: Trebuchet MS, Verdana, Geneva,sans-serif; +/* border:1px solid #aaa;*/ +} +.el-rte.el-fullscreen { + position:absolute; + width:99%; +/* height:100%;*/ + top:0; + left:0; + margin:0; +/* z-index:101;*/ +} + +.elrte-swf-placeholder { + width:1px; + background: url('../images/swf.png') 0 0 no-repeat; +} + +/* style to detect images url */ +/*.el-rte */ +.elrtetesturl { color:red; background-image:url(../images/pixel.gif);} + +/* панель инструментов */ +.el-rte .toolbar { background-color:#eee; padding:3px 7px 2px 7px; border:1px solid #ccc; white-space:normal; display:inline-block;} + +.el-rte-rtl .toolbar { direction: rtl; } + +/* панель кнопок */ +.el-rte .toolbar ul { + position:relative; + display:inline-block; + display: -moz-inline-stack; + display: inline-block; + vertical-align: top; + zoom: 1; + *display: inline; + margin:0; + list-style:none; + padding:0 2px 0 5px; + background: url('../images/elrte-toolbar.png') -934px -2px no-repeat; +} +/* первая панель кнопок */ +.el-rte .toolbar ul.first { + background:transparent; + padding-left:0; +} +/* кнопка */ +.el-rte .toolbar ul li { + clear:none; + display:inline-block; + display: -moz-inline-stack; + display: inline-block; + height:22px; + width:22px; + vertical-align: top; + zoom: 1; + *display: inline; + margin:1px 1px; + padding:0; /* Joomla 1.6 compat */ + background:url('../images/elrte-toolbar.png') no-repeat; + border:1px solid #ccc; +} +/* активная и подсвеченная и неактивная кнопка */ +.el-rte .toolbar ul li.hover { border:1px solid #54b9bf; } +.el-rte .toolbar ul li.active { background-color:#c3dbef; border:1px solid #fff; } +.el-rte .toolbar ul li.disabled { opacity:alpha(0.3); opacity: 0.3; filter:Alpha(Opacity=30);} +/* кнопки */ +.el-rte .toolbar ul li.about {background-position:-829px -5px;} +.el-rte .toolbar ul li.save {background-position:-30px -2px;} +.el-rte .toolbar ul li.new {background-position:-55px -2px} +.el-rte .toolbar ul li.copy {background-position:-78px -2px} +.el-rte .toolbar ul li.css {background-position:-801px -5px} +.el-rte .toolbar ul li.cut {background-position:-104px -2px} +.el-rte .toolbar ul li.paste {background-position:-128px -2px} +.el-rte .toolbar ul li.pastetext {background-position:-534px -2px} +.el-rte .toolbar ul li.pasteformattext {background-position:-154px -2px} +.el-rte .toolbar ul li.removeformat {background-position:-180px -2px} +.el-rte .toolbar ul li.docstructure {background-position:-712px -4px} +.el-rte .toolbar ul li.undo {background-position:-205px -2px} +.el-rte .toolbar ul li.redo {background-position:-230px -2px} +.el-rte .toolbar ul li.bold {background-position:-252px -2px; } +.el-rte .toolbar ul li.italic {background-position:-270px -2px;} +.el-rte .toolbar ul li.underline {background-position:-290px -2px; } +.el-rte .toolbar ul li.strikethrough {background-position:-149px -29px} +.el-rte .toolbar ul li.subscript {background-position:-54px -29px} +.el-rte .toolbar ul li.superscript {background-position:-76px -29px} +.el-rte .toolbar ul li.justifyleft {background-position:-311px -2px} +.el-rte .toolbar ul li.justifycenter {background-position:-335px -2px} +.el-rte .toolbar ul li.justifyright {background-position:-360px -2px} +.el-rte .toolbar ul li.justifyfull {background-position:-174px -29px} +.el-rte .toolbar ul li.insertunorderedlist {background-position:-100px -29px} +.el-rte .toolbar ul li.insertorderedlist {background-position:-124px -29px} +.el-rte .toolbar ul li.outdent {background-position:-6px -29px} +.el-rte .toolbar ul li.indent {background-position:-32px -29px} +.el-rte .toolbar ul li.blockquote {background-position:-220px -30px} +.el-rte .toolbar ul li.div {background-position:-655px -29px} +.el-rte .toolbar ul li.stopfloat {background-position:-771px -5px} +.el-rte .toolbar ul li.nbsp {background-position:-580px -2px} +.el-rte .toolbar ul li.forecolor {background-position:-372px -30px} +.el-rte .toolbar ul li.hilitecolor {background-position:-395px -30px} +.el-rte .toolbar ul li.link {background-position:-244px -29px} +.el-rte .toolbar ul li.unlink {background-position:-270px -29px} +.el-rte .toolbar ul li.anchor {background-position:-296px -30px} +.el-rte .toolbar ul li.image {background-position:-384px -2px} +.el-rte .toolbar ul li.flash {background-position:-410px -2px} +.el-rte .toolbar ul li.file {background-position:-436px -3px} +.el-rte .toolbar ul li.table {background-position:-421px -30px} +.el-rte .toolbar ul li.tableprops {background-position:-602px -29px} +.el-rte .toolbar ul li.tbcellprops {background-position:-806px -27px} +.el-rte .toolbar ul li.tablerm {background-position:-461px -2px} +.el-rte .toolbar ul li.tbrowbefore {background-position:-683px -4px} +.el-rte .toolbar ul li.tbrowafter {background-position:-654px -4px} +.el-rte .toolbar ul li.tbrowrm {background-position:-500px -30px} +.el-rte .toolbar ul li.tbcolbefore {background-position:-741px -27px} +.el-rte .toolbar ul li.tbcolafter {background-position:-772px -27px} +.el-rte .toolbar ul li.tbcolrm {background-position:-526px -30px} +.el-rte .toolbar ul li.tbcellsmerge {background-position:-552px -30px} +.el-rte .toolbar ul li.tbcellsplit {background-position:-629px -29px} +.el-rte .toolbar ul li.smiley {background-position:-322px -29px} +.el-rte .toolbar ul li.spec-text {background-position:-487px -2px} +.el-rte .toolbar ul li.print {background-position:-509px -2px} +.el-rte .toolbar ul li.horizontalrule {background-position:-199px -29px} +.el-rte .toolbar ul li.fullscreen {background-position:-348px -30px} +.el-rte .toolbar ul li.elfinder {background-position:-436px -2px} +.el-rte .toolbar ul li.ltr {background-position:-855px -27px} +.el-rte .toolbar ul li.rtl {background-position:-855px -3px} +.el-rte .toolbar ul li.pagebreak {background-position:-711px -28px} + + +/* рабочая зона (обертка над iframe) */ +.el-rte .workzone { border:1px solid #eee; border-top:none; height:400px;} +.el-rte.small .workzone { min-height:250px; } + +/* source code */ +.el-rte textarea { width:100%; height:100%; border:none; zoom:1; outline:none;} +.el-rte.small textarea { min-height:250px;} +/* редактор */ +.el-rte iframe { + width: 100%; + height:400px; + + outline:none; + border:0 solid; + padding:0; + margin:0; + background:#fff; + z-index:100; +} +.el-rte.small iframe { min-height:250px;} + +/* панель статуса (путь) */ +.el-rte .statusbar { + height: 21px; + padding: 0 9px; + font: 11px/21px 'monaco', 'andale mono', 'lucida console', monospace; + background-color:#eee; + border-top:1px solid #ccc; + border-top:none; +} + +.el-rte-rtl .statusbar { + direction:rtl; +/* text-align:right;*/ +} + +/* табы */ +.el-rte .tabsbar { display: block; } +.el-rte .tabsbar .tab { + float:left; + margin-right:2px; + padding: 6px 17px; + font-size: .82em; + font-weight:bold; + color:#777; + text-align:center; + border:1px solid #eee; + border-top:none; + background: #fff; + cursor: default; +} +.el-rte .tabsbar div.active { background: #eee; color:#444; } +.el-rte-rtl .tabsbar .tab { float:right; } + +/* выпадающие меню */ +/* container for elselect */ +.el-rte .toolbar ul li.el-select { + height:22px; + width : 120px; + border:1px solid #ccc; + font-size:.82em; + cursor: default; + background-position:-475px -30px; +} + +.el-rte .toolbar ul li.el-select.hover { + background-color:#fefefe; +} + +.el-rte .toolbar ul li.el-select label { + height:19px; + padding: 3px 5px 0 5px; + float:none; /* Joomla 1.6 compat */ + width:96px; /* Joomla 1.6 compat */ +} + +/* textarea & iframe в диплогах вставки текста */ +.el-rte-paste-input { + width : 99%; + height: 250px; + border: 1px solid #ccc; + padding:0; + margin:0; + outline:none; +} +/* индикатор выбраного цвета на кнопке */ +.el-rte .toolbar ul li div.color-indicator { + width:18px; + height:4px; + margin:16px 0 2px 2px; + background-color: #000; +} +.el-rte-rtl .toolbar ul li div.color-indicator { + margin:16px 2px 2px 0; +} +/* colors palette */ +.el-palette { top:20px; } + +.el-dialogform, .el-dialogform td { font-size:.9em; } +.el-dialogform select { font-size:.9em;} +.ui-dialog .ui-dialog-buttonpane { padding: .4em, 1em;} +.ui-dialog .ui-dialog-buttonpane button { margin: .3em .4em .1em 0; font-size:.9em;} +.ui-dialog .ui-dialog-titlebar { padding: .3em 1em .3em; } +/*.ui-dialog-buttonset { padding:0; background-color:#333;}*/ +/* диалоговые окна */ +.el-dialogform label { + display:block; +} +.el-dialogform label input { + margin-right:2px; +} +.el-dialogform iframe.el-rte-preview { + width : 100%; + height : 235px; + margin:0; + padding:0; + outline:none; + border:none; +} +.el-dialogform fieldset { + border:1px solid #ccc; + padding : 0; +} +.el-dialogform fieldset legend { + font-size:.9em; + padding: .1em .5em; + margin: 0 0 5px 1em; + border:1px solid #ccc; + background-color: #eee; +} +.el-dialogform p { padding:.2em .3em;} +.el-dialogform h3 { color:#555; padding:1.2em 0 0 0; margin:0; font-size:1.2em; } + +.el-dialogform h4 { color:#555;font-size:1em; padding:0; margin: 3px 9px; } + +.elrte-logo { + width:48px; + height:46px; + float:left; + margin:.5em 1em; + background:url('../images/elrte-toolbar.png') -880px -7px no-repeat; +} +.elrte-ver { font-size:.9em; padding-left:.7em;} +.elrte-copy { font-size:.9em; padding-left:.3em;} +table.elrte-authors { margin-bottom:1em;} +table.elrte-authors td { border-bottom:1px solid #eee;} +/* widgets */ +.el-borderselect {} +.el-borderselect table { margin:0; } +.el-borderselect table td { padding : 0 2px 0 0; vertical-align:middle; } +.el-borderselect input { margin:0; border:1px solid #ccc; } + +.el-paddinginput { display: block; white-space: nowrap; } +.el-paddinginput input { margin :0 1px 0 0; border:1px solid #ccc; } +.el-paddinginput select { padding:0; } + +.el-rte-smiley { margin:5px; } --- a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/elrte.full.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/elrte-1.1/js/elrte.full.js @@ -0,0 +1,8646 @@ +/*! + * elRTE WYSIWYG HTML-editor + * Version 1.1 (2010-09-20) + * http://elrte.org + * + * Copyright 2010, Studio 42 Ltd. + * Licensed under a 3 clauses BSD license + */ + +/** + * @class eli18n + * Javascript applications localization + * + * @param Object o - class options. Object. {textdomain : 'имя_группы_сообщений', messages : {textdomain1 : {}[, textdomain2 : {}]...}} + * + * Usage: + * + * var msgs = { Hello : 'Превэд', 'Hello %user' : 'Превед %user' }; + * //load messages and set default textdomain + * var translator = new eli18n( {textdomain : 'test', messages : {test : msgs}} ) + * window.console.log(translator.translate('Hello')); + * window.console.log(translator.format('Hello %user', {user : 'David Blain'})) + * // create new textdomain + * translator.load({test2 : {'Goodbye' : 'Ja, deva mata!'} }) + * // and use it, without changing default one + * window.console.log(translator.translate('Goodbye', 'test2')); + * + * @author: Dmitry (dio) Levashov dio@std42.ru + * license: BSD license + **/ +function eli18n(o) { + + /** + * Get/set default textdomain + * + * @param String d new textdomain name + * @return String default textdomain + **/ + this.textdomain = function(d) { + return this.messages[d] ? this._domain = d : this._domain; + } + + o && o.messages && this.load(o.messages); + o && o.textdomain && this.textdomain(o.textdomain); +} + +eli18n.prototype = new function() { + + /** + * @var Object messages (key - messages in English or message handler, value - message in selected language) + **/ + this.messages = {}; + /** + * @var String default textdomain + **/ + this._domain = ''; + + /** + * Load new messages + * + * @param Object msgs - messages (key - textdomain name, value - messages Object) + * @return Object this + **/ + this.load = function(msgs) { + if (typeof(msgs) == 'object') { + for (var d in msgs) { + var _msgs = msgs[d]; + if (typeof(_msgs) == 'object') { + if (!this.messages[d]) { + this.messages[d] = {}; + } + for (var k in _msgs) { + if (typeof(_msgs[k]) == 'string') { + this.messages[d][k] = _msgs[k]; + } + } + } + } + } + return this; + } + + /** + * Return translated message, if message exists in required or default textdomain, otherwise returns original message + * + * @param String msg - message + * @param String d - textdomain. If empty, default textdomain will be used + * @return String translated message + **/ + this.translate = function(msg, d) { + var d = d && this.messages[d] ? d : this._domain; + return this.messages[d] && this.messages[d][msg] ? this.messages[d][msg] : msg; + + } + + /** + * Translate message and replace placeholders (%placeholder) + * + * @param String msg - message + * @param Object replacement for placeholders (keys - placeholders name without leading %, values - replacements) + * @param String d - textdomain. If empty, default textdomain will be used + * @return String translated message + **/ + this.format = function(msg, data, d) { + msg = this.translate(msg, d); + if (typeof(data) == 'object') { + for (var i in data) { + msg = msg.replace('%'+i, this.translate(data[i], d)); + } + } + return msg; + } +} +/** + * @class elDialogForm + * Wraper for jquery.ui.dialog and jquery.ui.tabs + * Create form in dialog. You can decorate it as you wish - with tabs or/and tables + * + * Usage: + * var d = new elDialogForm(opts) + * d.append(['Field name: ', $('')]) + * .separator() + * .append(['Another field name: ', $('')]) + * .open() + * will create dialog with pair text field separated by horizontal rule + * Calling append() with 2 additional arguments ( d.append([..], null, true)) + * - will create table in dialog and put text inputs and labels in table cells + * + * Dialog with tabs: + * var d = new elDialogForm(opts) + * d.tab('first', 'First tab label) + * .tab('second', 'Second tab label) + * .append(['Field name: ', $('')], 'first', true) - add label and input to first tab in table (table will create automagicaly) + * .append(['Field name 2: ', $('')], 'second', true) - same in secon tab + * + * Options: + * class - css class for dialog + * submit - form submit event callback. Accept 2 args - event and this object + * ajaxForm - arguments for ajaxForm, if needed (dont forget include jquery.form.js) + * tabs - arguments for ui.tabs + * dialog - arguments for ui.dialog + * name - hidden text field in wich selected value will saved + * + * Notice! + * When close dialog, it will destroing insead of dialog('close'). Reason - strange bug with tabs in dialog on secondary opening. + * + * @author: Dmitry Levashov (dio) dio@std42.ru + * + **/ + +function elDialogForm(o) { + var self = this; + + var defaults = { + 'class' : 'el-dialogform', + submit : function(e, d) { window.console && window.console.log && window.console.log('submit called'); d.close(); }, + form : { action : window.location.href, method : 'post' }, + ajaxForm : null, + validate : null, + spinner : 'Loading', + tabs : { active: 0 }, + tabPrefix : 'el-df-tab-', + dialog : { + title : 'dialog', + autoOpen : false, + modal : true, + resizable : false, + buttons : { + Cancel : function() { self.close(); }, + Ok : function() { self.form.trigger('submit'); } + } + } + }; + + this.opts = jQuery.extend(true, defaults, o, {dialog : { autoOpen : false, close : function() { self.close(); } }}); + + if (this.opts.rtl) { + this.opts['class'] += ' el-dialogform-rtl'; + } + + if (o && o.dialog && o.dialog.buttons && typeof(o.dialog.buttons) == 'object') { + this.opts.dialog.buttons = o.dialog.buttons; + } + this.ul = null; + this.tabs = {}; + this._table = null; + this.dialog = jQuery('
').addClass(this.opts['class']).dialog(this.opts.dialog); + this.message = jQuery('
').hide().appendTo(this.dialog); + this.error = jQuery('
').hide().appendTo(this.dialog); + this.spinner = jQuery('
').hide().appendTo(this.dialog); + this.content = jQuery('
').appendTo(this.dialog) + this.form = jQuery('
').attr(this.opts.form).appendTo(this.content); + + if (this.opts.submit) { + this.form.bind('submit', function(e) { self.opts.submit(e, self) }) + } + if (this.opts.ajaxForm && jQuery.fn.ajaxForm) { + this.form.ajaxForm(this.opts.ajaxForm); + } + if (this.opts.validate) { + this.form.validate(this.opts.validate); + } + + this.option = function(name, value) { + return this.dialog.dialog('option', name, value) + } + + this.showError = function(msg, hideContent) { + this.hideMessage(); + this.hideSpinner(); + this.error.html(msg).show(); + hideContent && this.content.hide(); + return this; + } + + this.hideError= function() { + this.error.text('').hide(); + this.content.show(); + return this; + } + + this.showSpinner = function(txt) { + this.error.hide(); + this.message.hide(); + this.content.hide(); + this.spinner.text(txt||this.opts.spinner).show(); + this.option('buttons', {}); + return this; + } + + this.hideSpinner = function() { + this.content.show(); + this.spinner.hide(); + return this; + } + + this.showMessage = function(txt, hideContent) { + this.hideError(); + this.hideSpinner(); + this.message.html(txt||'').show(); + hideContent && this.content.hide(); + return this; + } + + this.hideMessage = function() { + this.message.hide(); + this.content.show(); + return this; + } + + /** + * Create new tab + * @param string id - tab id + * @param string title - tab name + * @return elDialogForm + **/ + this.tab = function(id, title) { + id = this.opts.tabPrefix+id; + + if (!this.ul) { + this.ul = jQuery('