diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js index 7516c7d35..28ab83f85 100644 --- a/html/js/noalyss_script.js +++ b/html/js/noalyss_script.js @@ -4724,15 +4724,15 @@ Noalyss = function () { * @param {string} mode min for minimum or full , gives an error if the mode doesn't exist * @returns {undefined} */ -Noalyss.prototype.activate_tinymce=function (domid,mode) { +Noalyss.prototype.activate_tinymce=function (domid,mode,p_height) { tinymce.remove('#'+domid); - + if (! p_height) p_height=500; if ( mode == 'minimal' || ! mode ) { tinymce.init({ selector: 'textarea#'+domid, plugins:'link quickbars ', - height: 500, + height: p_height, menubar: false, toolbar: 'undo redo | ' + 'bold italic underline forecolor backcolor |fontsize ' + @@ -4759,7 +4759,7 @@ Noalyss.prototype.activate_tinymce=function (domid,mode) { */ tinymce.init({ selector: 'textarea#'+domid, - height: 500, + height: p_height, menubar: false, plugins:'link lists emoticons quickbars pagebreak table', toolbar: 'undo redo ' + @@ -4778,10 +4778,10 @@ Noalyss.prototype.activate_tinymce=function (domid,mode) { }else if ( mode == 'no-toolbar' ) { - + console.debug(`no toolbar ${domid} height ${p_height}`) tinymce.init({ selector: 'textarea#'+domid, - height: 500, + height: p_height, plugins:' quickbars', menubar:false, toolbar: false, diff --git a/include/lib/itextarea.class.php b/include/lib/itextarea.class.php index 03bd8865c..f594a38e6 100644 --- a/include/lib/itextarea.class.php +++ b/include/lib/itextarea.class.php @@ -35,6 +35,7 @@ class ITextarea extends HtmlInput parent::__construct($p_name, $p_value, $p_id); $this->style=' class="itextarea" '; $this->enrichText="plain"; + $this->heigh=500; } /** @@ -84,7 +85,7 @@ class ITextarea extends HtmlInput EOF; diff --git a/include/template/ledger_detail_ach.php b/include/template/ledger_detail_ach.php index 3633f348e..1f088d878 100644 --- a/include/template/ledger_detail_ach.php +++ b/include/template/ledger_detail_ach.php @@ -5,6 +5,7 @@ /** * @var $str_anc String HTML contains the detail of analytic * @var $g_user Noalyss_User inherited , it is the connected user + * @var $div (string) current DIV ID */ $str_anc=""; global $div,$g_parameter,$cn,$access,$jr_id,$obj; @@ -107,6 +108,7 @@ global $div,$g_parameter,$cn,$access,$jr_id,$obj;