feat: selfhost tinymce

This commit is contained in:
Rotimi Best
2024-05-14 15:22:30 +01:00
parent e243564113
commit a657cf8da0
133 changed files with 7367 additions and 47 deletions
@@ -75,13 +75,6 @@ export const addMathPlugin = (tinymce: any) => {
name: 'submitButton',
text: 'Ok',
buttonType: 'primary'
},
{
type: 'custom',
name: 'logo',
text: '',
icon: 'logo',
align: 'start'
}
],
onSubmit: async function (w) {
@@ -104,7 +97,7 @@ export const addMathPlugin = (tinymce: any) => {
const html = await response.text();
// 4. Set the content to the html
content = `<p>${html}</p><p>&nbsp;</p>`;
content = html;
} else {
console.error('No src attribute found in the img tag.');
}