feat: selfhost tinymce
This commit is contained in:
@@ -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> </p>`;
|
||||
content = html;
|
||||
} else {
|
||||
console.error('No src attribute found in the img tag.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user