Skip to content

Commit

Permalink
编辑器高度设置
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Apr 20, 2020
1 parent db1d455 commit 89b0129
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Form/Field/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Editor extends Field
'undo redo | preview fullscreen | styleselect | fontsizeselect bold italic underline strikethrough forecolor backcolor | link image media blockquote removeformat codesample',
'alignleft aligncenter alignright alignjustify| indent outdent bullist numlist table subscript superscript | code',
],
'min_height' => 400,
'save_enablewhendirty' => true,
];

Expand Down Expand Up @@ -97,6 +98,18 @@ public function languageUrl(string $url)
return $this->options(['language_url' => $url]);
}

/**
* 设置编辑器高度.
*
* @param int $height
*
* @return $this
*/
public function height(int $height)
{
return $this->options(['min_height' => $height]);
}

/**
* @return string
*/
Expand Down

0 comments on commit 89b0129

Please sign in to comment.