에디터 툴 제작
에디터툴
에디터 도구 생성
컴포넌트 추가
class SomeTool extends AbstractTool
{
public function initAssets()
{
XeFrontend::js(asset('path/to/sometool.js'))->load();
}
public function getIcon()
{
return asset('path/to/icon.gif');
}
public function compile($content)
{
$content = /* 내용 변환 코드 */;
return $content;
}
}사용제한
Frontend
XEeditor.defineTool
Tool사용
Last updated
Was this helpful?