Socket
Socket
Sign inDemoInstall

@optimuscms/editor

Package Overview
Dependencies
11
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @optimuscms/editor

The Optimus CMS WYSIWYG editor powered by TinyMCE.


Version published
Maintainers
2
Created

Readme

Source

Optimus Editor

The Optimus CMS WYSIWYG editor powered by TinyMCE.

Installation

# npm
npm install @optimuscms/editor --save

# yarn
yarn add @optimuscms/editor
Javascript
import Editor from '@optimuscms/editor';

Vue.use(Editor, {
    apiKey: 'your-api-key'
});
SCSS
@import '~@optimuscms/editor/dist/styles.css';

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',
    config: config
});

An optional parameter of componentName can be passed allowing you to set a custom component name for the editor, by default this is editor.

Component

By default 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.

FAQs

Last updated on 28 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc