Tui.editor: How to use plugins in vue wrapper?

Created on 16 May 2020  路  2Comments  路  Source: nhn/tui.editor

Question

Most helpful comment

ok, it is

template

 <editor :options="options"/>

js:

import 'highlight.js/styles/github.css'
import 'codemirror/lib/codemirror.css'
import '@toast-ui/editor/dist/toastui-editor.css'
import { Editor } from '@toast-ui/vue-editor'
import codeSyntaxHighlight from '@toast-ui/editor-plugin-code-syntax-highlight'

data

options: {
        plugins: [
          codeSyntaxHighlight
        ]
      }

All 2 comments

ok, it is

template

 <editor :options="options"/>

js:

import 'highlight.js/styles/github.css'
import 'codemirror/lib/codemirror.css'
import '@toast-ui/editor/dist/toastui-editor.css'
import { Editor } from '@toast-ui/vue-editor'
import codeSyntaxHighlight from '@toast-ui/editor-plugin-code-syntax-highlight'

data

options: {
        plugins: [
          codeSyntaxHighlight
        ]
      }

thanks, you are my savior...
I'm searching for a week :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lovemine picture lovemine  路  4Comments

igasparetto picture igasparetto  路  4Comments

gincheong picture gincheong  路  4Comments

bricepepin picture bricepepin  路  3Comments

cyberjacob picture cyberjacob  路  4Comments