Open
Description
-
Add formula content to the file:
ClassicEditor .create( document.querySelector( '#editor' ), { math: { engine: 'katex', katexRenderOptions: { macros: { '\\test': '\\mathrel{\\char`≠}' } } }, plugins: [ Math, AutoformatMath, ..... ], toolbar: [ 'math', ... ] ... } ) .then( editor => { window.editor = editor; // dynamically set the editor's formula editor.setData('\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]'); CKEditorInspector.attach( editor ); window.console.log( 'CKEditor 5 is ready.', editor ); } ) .catch( err => { window.console.error( err.stack ); } );
-
show contents
\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]
-
Expected result:
Format formula
Metadata
Assignees
Labels
No labels
Activity