Skip to content

Commit

Permalink
chore: delete one editor
Browse files Browse the repository at this point in the history
  • Loading branch information
xjiang-at-wiris committed Aug 26, 2024
1 parent 63cd682 commit b6f2855
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions demos/html/ckeditor5/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,38 +91,7 @@ ClassicEditor.create(document.querySelector("#editor2"), {
console.error(error.stack); //eslint-disable-line
});

ClassicEditor.create(document.querySelector("#editor3"), {
plugins: [Essentials, Paragraph, Bold, Italic, MathType, Alignment, SourceEditing],
toolbar: [
"bold",
"italic",
"MathType",
"ChemType",
"alignment:left",
"alignment:center",
"alignment:right",
"sourceEditing",
],
// language: 'de',
// mathTypeParameters: {
// editorParameters: { language: 'es' }, // MathType config, including language
// },
})
.then((editor) => {
window.editor = editor;
// Add listener on click button to launch updateContent function.
// document.getElementById('btn_update').addEventListener('click', (e) => {
// e.preventDefault();
// Generic.updateContent(editor.getData(), 'transform_content');
// });

// Get and set the editor and wiris versions in this order.
Generic.setEditorAndWirisVersion("5.0.0", packageInfo.version);
editor.editing.view.focus();
})
.catch((error) => {
console.error(error.stack); //eslint-disable-line
});s
document.getElementById("btn_update").addEventListener("click", (e) => {
e.preventDefault();
Generic.updateContent(window.editor.getData(), "transform_content");
Expand Down

0 comments on commit b6f2855

Please sign in to comment.