[Koha-patches] [PATCH] Add YUI Rich Text Editor to OPAC and Koha News page
Henri-Damien LAURENT
henridamien at koha-fr.org
Mon Apr 21 17:16:58 CEST 2008
Frederic Demians a écrit :
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css
> new file mode 100755
> index 0000000..8f7329d
> --- /dev/null
> +++ b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css
> @@ -0,0 +1,7 @@
> +/*
> +Copyright (c) 2008, Yahoo! Inc. All rights reserved.
> +Code licensed under the BSD License:
> +http://developer.yahoo.net/yui/license.txt
> +version: 2.5.1
> +*/
> +
> 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 7dc8b0c..e8c2023 100755
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
> @@ -8,7 +8,11 @@ $(document).ready(function() {
> $("#newst").tablesorter({
> sortList: [[2,0]],
> headers: { 0: {sorter:false},6: { sorter: false },7: { sorter: false }}
> - });
> + });
> +
> + var newEditor = new YAHOO.widget.SimpleEditor('new', {
> height: '300px',
> width: '700px',
> dompath: true,
> + handleSubmit: true,
> + STR_TITLE: "new text"
> });
> newEditor.render();
> });
> //]]>
> </script>
> @@ -83,10 +87,12 @@ Edit News Item<!-- TMPL_ELSE -->Add News Item<!-- /TMPL_IF --><!-- TMPL_ELSE -->
> <input id="number" size="3" name="number" type="text" />
> <!-- /TMPL_IF -->
> </li>
> - <li><label for="new">News</label>
> - <textarea name="new" id="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea></li>
> </ol>
> </fieldset>
> + <div class=" yui-skin-sam" style="display: block;">
> + <label for="new"><b>News:</b></label>
> + <textarea name="new" id="new" cols="75" rows="20" class=" yui-skin-sam"><!-- TMPL_VAR NAME="new" --></textarea>
> + </div>
>
> <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
> </form>
>
Hi...
I got a problem with this part of your patch :
it tells me that a header is missing
--
Henri-Damien LAURENT
BibLibre SARL
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
tel : +33 4 67 65 75 50
More information about the Koha-patches
mailing list