Open florincod opened 1 year ago
I found a fix in events, after many tries with events and options:
events: {
keydown: async function () {
// set default font family, fix for Firefox
if (!this.html.get()) {
this.fontFamily.apply('Arial, Helvetica, sans-serif');
}
}
}
Expected behavior.
On Chrome and other browsers it works, i expect to get this (code view):
<p><span style="font-family: Arial, Helvetica, sans-serif;">test</span></p>
Actual behavior.
On Firefox it doesn't set the font family:
<p>test</p>
Steps to reproduce the problem.
it happens also when addin a setTimeout if I add this for test it works: editor.html.insert('Your text here');
Editor version.
"vue-froala-wysiwyg": "4.1.0" or 4.1.3
OS.
Windows 10 (it happens on Macbook too)
Browser.
Firefox 118.0.2 (64-bit)