diff --git a/COPYRIGHT b/COPYRIGHT index d4c739ff082..491270897b7 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -61,6 +61,7 @@ jQuery UI 1.13.2 GPL and MIT License Yes jQuery select2 4.0.13 GPL and Apache License Yes JS library plugin for sexier multiselect. Warning: 4.0.6+ create troubles without patching css jQuery Colorpicker 1.1 MIT License Yes JS library for color picker for a defined list of colors jQuery JCrop 0.9.8 GPL and MIT License Yes JS library plugin Crop (to crop images) +jQuery Jeditable 1.7.1 GPL and MIT License Yes JS library plugin jeditable (to edit in place) jQuery jNotify 1.1.00 Apache License 2.0 Yes JS library plugin jNotify (to use ajax popups) jQuery jPicker 1.1.6 GPL and MIT License Yes JS library for color picker with not defined list of colors jQuery jqueryFileTree 1.0.1 GPL and MIT License Yes JS library for filetree diff --git a/ChangeLog b/ChangeLog index c90667c6a9b..286adba5f75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -140,7 +140,6 @@ NEW: introduce method dolSetCookie NEW: Invoice - Document - Add hook on action NEW: Pagination data for intervention APi NEW: Add experimental Website Template for Association -NEW: Remove jeditable. WARNING: -------- diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 7900208bb86..156e0c67a12 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -126,6 +126,16 @@ if (GETPOST('action') == 'disable_specialchar') { if (GETPOST('save', 'alpha')) { $error = 0; + $fckeditor_skin = GETPOST('fckeditor_skin', 'alpha'); + if (!empty($fckeditor_skin)) { + $result = dolibarr_set_const($db, 'FCKEDITOR_SKIN', $fckeditor_skin, 'chaine', 0, '', $conf->entity); + if ($result <= 0) { + $error++; + } + } else { + $error++; + } + $fckeditor_test = GETPOST('formtestfield', 'restricthtml'); if (!empty($fckeditor_test)) { $result = dolibarr_set_const($db, 'FCKEDITOR_TEST', $fckeditor_test, 'chaine', 0, '', $conf->entity); diff --git a/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ckeditor.js b/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ckeditor.js new file mode 100644 index 00000000000..06afd07f9fe --- /dev/null +++ b/htdocs/includes/jquery/plugins/jeditable/jquery.jeditable.ckeditor.js @@ -0,0 +1,70 @@ +/* + * CKEditor input for Jeditable + * + * Adapted from Wysiwyg input for Jeditable by Mike Tuupola + * http://www.appelsiini.net/2008/9/wysiwyg-for-jeditable + * + * Copyright (c) 2009 Jeremy Bell + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + * + * Depends on CKEditor: + * http://ckeditor/ + * + */ + +(function($) { + $.generateId = function() { + return arguments.callee.prefix + arguments.callee.count++; + }; + $.generateId.prefix = 'jq$'; + $.generateId.count = 0; + + $.fn.generateId = function() { + return this.each(function() { + this.id = $.generateId(); + }); + }; +})(jQuery); + +(function($) { +$.editable.addInputType('ckeditor', { + /* Use default textarea instead of writing code here again. */ + //element : $.editable.types.textarea.element, + element : function(settings, original) { + /* Hide textarea to avoid flicker. */ + var textarea = $('