diff --git a/src/Form/Field/Editor.php b/src/Form/Field/Editor.php index 04d254ceb..5883a9acd 100755 --- a/src/Form/Field/Editor.php +++ b/src/Form/Field/Editor.php @@ -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, ]; @@ -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 */