mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
Merge branch 'master' of https://github.com/heyscrumpy/tiptap
This commit is contained in:
commit
0233fbb3e0
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user