初始化
This commit is contained in:
16
addons/webman/form/MyEditor.php
Normal file
16
addons/webman/form/MyEditor.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace addons\webman\form;
|
||||
|
||||
use ExAdmin\ui\component\form\Field;
|
||||
|
||||
class MyEditor extends Field
|
||||
{
|
||||
public function jsonSerialize()
|
||||
{
|
||||
$this->attr('html-raw',true)
|
||||
->content(file_get_contents( plugin()->webman->getPath(). '/views/my_editor.vue'));
|
||||
|
||||
return parent::jsonSerialize();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user