Share a view variable for the current editor. This is used to send to vuejs.

parent 0ebbe445
......@@ -10,6 +10,7 @@ class LoadCkEditor
{
$editor->addJs('ckeditor.js');
$editor->setEditorClass('ckeditor');
view()->share('activeEditor', 'ckeditor');
return false;
}
......
......@@ -11,6 +11,7 @@ class LoadSimpleMde
$editor->addJs('simplemde.js')->addCss('simplemde.css');
$editor->setEditorClass('simplemde');
$editor->setEditorJsPartial('core::partials.simplemde');
view()->share('activeEditor', 'simplemde');
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment