From 7b93e31e03203f2d542953d76227b213aaf6cb6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= Date: Fri, 25 Jan 2019 16:28:28 +0200 Subject: [PATCH 1/2] Update examples.js --- examples/Components/Routes/CodeHighlighting/examples.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Components/Routes/CodeHighlighting/examples.js b/examples/Components/Routes/CodeHighlighting/examples.js index a91c4c52d..6bf80d6d6 100644 --- a/examples/Components/Routes/CodeHighlighting/examples.js +++ b/examples/Components/Routes/CodeHighlighting/examples.js @@ -30,6 +30,9 @@ body, .usertext { export const ExplicitImportExample = `import javascript from 'highlight.js/lib/languages/javascript' import { Editor } from 'tiptap' +import { + CodeBlockHighlight, +} from 'tiptap-extensions' export default { components: { @@ -38,7 +41,7 @@ export default { data() { return { extensions: [ - new CodeBlockHighlightNode({ + new CodeBlockHighlight({ languages: { javascript, css, From 4c278e08a02f7b971d8564c11c46331737b7ee4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= Date: Fri, 25 Jan 2019 16:34:27 +0200 Subject: [PATCH 2/2] Update examples.js --- examples/Components/Routes/CodeHighlighting/examples.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/Components/Routes/CodeHighlighting/examples.js b/examples/Components/Routes/CodeHighlighting/examples.js index 6bf80d6d6..9169ed304 100644 --- a/examples/Components/Routes/CodeHighlighting/examples.js +++ b/examples/Components/Routes/CodeHighlighting/examples.js @@ -29,6 +29,7 @@ body, .usertext { export const ExplicitImportExample = `import javascript from 'highlight.js/lib/languages/javascript' +import css from 'highlight.js/lib/languages/css' import { Editor } from 'tiptap' import { CodeBlockHighlight,