Bug 12032: disable automatic URL conversion by TinyMCE in news
authorLiz Rea <liz@catalyst.net.nz>
Thu, 3 Apr 2014 03:25:35 +0000 (16:25 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 7 Apr 2014 15:24:57 +0000 (15:24 +0000)
To test:

* create a news item with a link in it that is within the same domain

example: my koha was at http://demo.mykoha.co.nz, I created a link in a
news item to http://demo-intra.mykoha.co.nz

* note that when the item is saved, the url changes to ../../../../ (or
something like)

* apply the patch

* edit the link again, and save it

* note that the link is saved correctly

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt

index 411ab1f..931b7d9 100644 (file)
@@ -29,6 +29,8 @@ var MSG_CONFIRM_DELETE_NEWS  = _("Are you sure you want to delete the selected n
 tinyMCE.init({
     mode : "textareas",
     theme : "advanced",
+    convert_urls : false,
+    relative_urls : false,
     content_css : "[% themelang %]/css/tinymce.css",
     plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu",
     theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print",