math support WIP

This commit is contained in:
zadam
2020-10-15 23:57:29 +02:00
parent 631a11509a
commit f23454ffa3
8 changed files with 101 additions and 60 deletions

View File

@@ -108,6 +108,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
math: {
engine: 'katex',
outputType: 'span', // or script
lazyLoad: async () => await libraryLoader.requireLibrary(libraryLoader.KATEX),
forceOutputType: false, // forces output to use outputType
enablePreview: true // Enable preview view
}