release
parent
1255c0fa5f
commit
0196522914
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue