experimental math support

This commit is contained in:
zadam
2020-09-21 22:57:22 +02:00
parent bf9bfe920a
commit 631a11509a
71 changed files with 35366 additions and 4 deletions

View File

@@ -162,7 +162,10 @@ const editorConfig = {
'CodeBlock',
'SelectAll',
'IncludeNote',
'CutToNote'
'CutToNote',
'Mathematics',
'indentBlockShortcutPlugin',
'removeFormatLinksPlugin'
],
toolbar: {
items: []

View File

@@ -104,6 +104,12 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
mention: mentionSetup,
codeBlock: {
languages: codeBlockLanguages
},
math: {
engine: 'katex',
outputType: 'span', // or script
forceOutputType: false, // forces output to use outputType
enablePreview: true // Enable preview view
}
});