I'm using tinyMCE, and I set the value of my font-family and font-size, through the function:
setup: (editor) => {
editor.on('init', (ed) => {
ed.target.editorCommands.execCommand("fontName", false, `${this.request.reportFontFamily}`);
ed.target.editorCommands.execCommand("fontSize", false, `${this.request.reportFontSize}pt`);
})
}
With that he starts with the values I need. But when I click anywhere in tinyMCE it sets the font to sans-serif. This happens even though I manually select the font.
So whenever I click on any part of tiny, it will set to sans-serif.
Can anyone help me with this?