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; id="jrn_note"; $inote->style=' class="itextarea" style="width:90%;height:100%;"'; $inote->value = strip_tags($obj->det->note); echo $inote->input(); diff --git a/include/template/ledger_detail_fin.php b/include/template/ledger_detail_fin.php index 640afc4eb..35a95680a 100644 --- a/include/template/ledger_detail_fin.php +++ b/include/template/ledger_detail_fin.php @@ -3,6 +3,8 @@ //see licence.txt $str_anc=""; global $g_parameter,$g_user; + +//* @var $div (string) current DIV ID ?>
det->jr_tech_per); $exercice=$periode_id->get_exercice(); $owner = new Noalyss_Parameter_Folder($cn); +//* @var $div (string) current DIV ?> diff --git a/include/template/ledger_detail_ven.php b/include/template/ledger_detail_ven.php index c0dcbc5ae..0aafd1148 100644 --- a/include/template/ledger_detail_ven.php +++ b/include/template/ledger_detail_ven.php @@ -1,6 +1,8 @@ diff --git a/scenario/LIB/itextarea-test.php b/scenario/LIB/itextarea-test.php index 048541c40..22766c2b6 100644 --- a/scenario/LIB/itextarea-test.php +++ b/scenario/LIB/itextarea-test.php @@ -59,7 +59,7 @@ echo $itext->input(); value= $http->post("enrich3","raw",""); - + $itext->heigh=130; $itext->set_enrichText("no-toolbar"); echo $itext->input(); ?> @@ -69,7 +69,7 @@ echo $itext->input();

Plain Area

value= strip_tags($http->post("enrich2","raw","")); $itext->set_enrichText("plain");