How to use suneditor - 1 common examples

To help you get started, we’ve selected a few suneditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mkhstar / suneditor-react / SunEditor.js View on Github external
componentDidMount() {
    const { lang, setOptions = {}, width = '100%' } = this.props;
    const editor = suneditor.create(this.state.id, {
      plugins: getPlugins(setOptions),
      width,
      lang: getLanguage(lang)
    });
    const {
      insertHTML,
      setContents,
      appendContents,
      disable,
      enable,
      hide,
      show,
      showToolbar = true,
      enableToolbar = true,
      onScroll,
      onClick,

suneditor

Vanilla javascript based WYSIWYG web editor, with no dependencies

MIT
Latest version published 3 months ago

Package Health Score

77 / 100
Full package analysis

Popular suneditor functions