@@ -366,20 +366,23 @@ public function htmlFormElement($element_info, $options=null) {
366366 $ class = trim ((isset ($ options ['class ' ]) && $ options ['class ' ]) ? $ options ['class ' ] : '' );
367367 $ element = '' ;
368368
369- $ opts = [
369+ $ attr = [
370370 'width ' => $ width .(is_numeric ($ width ) ? 'px ' : '' ),
371371 'height ' => $ height .(is_numeric ($ height ) ? 'px ' : '' ),
372372 'value ' => '{{ ' .$ element_info ['element_id ' ].'}} ' ,
373373 'id ' => '{fieldNamePrefix} ' .$ element_info ['element_id ' ].'_{n} ' ,
374- 'class ' => "{$ class }" ,
374+ 'class ' => "{$ class }"
375+ ];
376+ $ opts = [
377+ 'textAreaTagName ' => caGetOption ('textAreaTagName ' , $ options , null )
375378 ];
376379 $ attributes = caGetOption ('attributes ' , $ options , null );
377380 if (is_array ($ attributes )) {
378- $ opts = array_merge ($ attributes , $ opts );
381+ $ attr = array_merge ($ attributes , $ opts );
379382 }
380383
381384 if (caGetOption ('readonly ' , $ options , false )) {
382- $ opts ['disabled ' ] = 1 ;
385+ $ attr ['disabled ' ] = 1 ;
383386 }
384387
385388 if ($ settings ['usewysiwygeditor ' ] ?? null ) {
@@ -439,7 +442,7 @@ public function htmlFormElement($element_info, $options=null) {
439442
440443 $ element .= "<div style='width: {$ width_w_suffix }; height: {$ height_w_suffix }; overflow-y: auto;' class='{fieldNamePrefix} {$ element_info ['element_id ' ]}_container_{n} ckeditor-wrapper'> " .caHTMLTextInput (
441444 '{fieldNamePrefix} ' .$ element_info ['element_id ' ].'_{n} ' ,
442- $ opts
445+ $ attr , $ opts
443446 )."</div><style>
444447 .{fieldNamePrefix} {$ element_info ['element_id ' ]}_container_{n} .ck-editor__editable_inline {
445448 min-height: calc( {$ height }px - 100px);
@@ -468,20 +471,20 @@ public function htmlFormElement($element_info, $options=null) {
468471 " .json_encode ($ quill_opts )."
469472 );
470473 </script> \n" ;
471- $ opts ['style ' ] = 'display: none; ' ;
474+ $ attr ['style ' ] = 'display: none; ' ;
472475 $ element .= "<div id='{fieldNamePrefix} " .$ element_info ['element_id ' ]."_editor_{n}' style='height: {$ height_w_suffix };' class='ql-ca-editor'></div> " ;
473476
474477 $ element .= caHTMLTextInput (
475478 '{fieldNamePrefix} ' .$ element_info ['element_id ' ].'_{n} ' ,
476- $ opts
479+ $ attr , $ opts
477480 );
478481 $ element .= "</div> \n" ;
479482 break ;
480483 }
481484 } else {
482485 $ element .= caHTMLTextInput (
483486 '{fieldNamePrefix} ' .$ element_info ['element_id ' ].'_{n} ' ,
484- $ opts
487+ $ attr , $ opts
485488 );
486489 }
487490
0 commit comments