Optimus Editor
The Optimus CMS WYSIWYG editor powered by TinyMCE.
Installation
npm install @optimuscms/editor --save
yarn add @optimuscms/editor
import Editor from '@optimuscms/editor';
Vue.use(Editor, {
apiKey: 'your-api-key'
});
Usage
Configuration
The default configuration options can be modified using any of the TinyMCE options.
import Editor, { config } from '@optimuscms/editor';
config.branding = true;
Vue.use(Editor, {
apiKey: 'your-api-key'
});
Component
The plugin registers an <editor>
component.
<editor v-model="content"></editor>
It's also possible to modifiy a specific component's configuration options via the config
prop.
<editor v-model="content" :config="{ branding: true }"></editor>
License
The MIT License (MIT). Please see License File for more information.