6
0
Fork 0
release
panliang 2022-06-02 16:20:37 +08:00
parent 1255c0fa5f
commit 0196522914
2 changed files with 19 additions and 1 deletions

View File

@ -7,4 +7,22 @@ use Dcat\Admin\Form\Field;
class WangEditor extends Field
{
protected $view = 'admin.form.wang-editor';
protected $height = '200px';
public function height($height)
{
$this->height = $height;
return $this;
}
public function render()
{
$this->addVariables([
'height' => $this->height,
]);
return parent::render();
}
}

View File

@ -7,7 +7,7 @@
@include('admin::form.error')
<div {!! $attributes !!} style="width: 100%; height: 100%;">
<div class="wang-editor full-screen-container">
<div class="wang-editor full-screen-container" style="height: {{ $height }}">
<div class="toolbar" id="editor-toolbar"></div>
<div class="editor" id="editor"></div>
</div>