You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a custom Rich Text Editor (RTE) extension for GrapesJS. The extension works as expected in Google Chrome but does not function correctly in Mozilla Firefox. Below is the code for the extension:
I've tested this on the latest versions of both browsers. In Chrome, all features of the extension are working without issues. However, in Firefox, the toolbar options do not appear to function properly.
I would appreciate any insights or suggestions for resolving this issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have created a custom Rich Text Editor (RTE) extension for GrapesJS. The extension works as expected in Google Chrome but does not function correctly in Mozilla Firefox. Below is the code for the extension:
export default (editor, opts = {}) => {
const options = {
base: {
bold: true,
italic: true,
underline: true,
strikethrough: true,
link: true,
},
indentOutdent: true,
list: true,
align: true,
extra: false,
darkColorPicker: false,
maxWidth: '600px',
...opts,
};
const { icons = {} } = options;
const rte = editor.RichTextEditor;
editor.onReady(() => {
if (options.maxWidth)
rte.getToolbarEl().firstChild.style.maxWidth = options.maxWidth;
});
};
I've tested this on the latest versions of both browsers. In Chrome, all features of the extension are working without issues. However, in Firefox, the toolbar options do not appear to function properly.
I would appreciate any insights or suggestions for resolving this issue.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions