Skip to content

Commit

Permalink
text area dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed May 9, 2022
1 parent 0c9ad04 commit 95fd92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Expand Up @@ -73,8 +73,8 @@ public function onDisplay(
$textarea->class = 'mce_editable joomla-editor-tinymce';
$textarea->cols = $col;
$textarea->rows = $row;
$textarea->width = $width;
$textarea->height = $height;
$textarea->width = is_numeric($width) ? $width . 'px' : $width;
$textarea->height = is_numeric($height) ? $height . 'px' : $height;
$textarea->content = $content;
$textarea->readonly = !empty($params['readonly']);

Expand Down

0 comments on commit 95fd92c

Please sign in to comment.