Merge pull request #178 from iliyaZelenko/patch-1

Update examples.js
This commit is contained in:
Philipp Kühn 2019-01-31 16:32:31 +01:00 committed by GitHub
commit 2f6bb5f8b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,11 @@ body, .usertext {
export const ExplicitImportExample = `import javascript from 'highlight.js/lib/languages/javascript' export const ExplicitImportExample = `import javascript from 'highlight.js/lib/languages/javascript'
import css from 'highlight.js/lib/languages/css'
import { Editor } from 'tiptap' import { Editor } from 'tiptap'
import {
CodeBlockHighlight,
} from 'tiptap-extensions'
export default { export default {
components: { components: {
@ -38,7 +42,7 @@ export default {
data() { data() {
return { return {
extensions: [ extensions: [
new CodeBlockHighlightNode({ new CodeBlockHighlight({
languages: { languages: {
javascript, javascript,
css, css,