Assigning some fonts to styles produces an error on PDF preview and disables access to the style editor. To reproduce:
- Open Docmenta in Chrome Version 59.0.3071.115 64bits (Tested on both win10 and 7)
- Edit or create a style and assing font "Courier New", Courier, mono (other families produce the same error, Courrier is present on the system)
- Assign the style to some content and try to create a PDF preview, preview thorws an error: "Failed to Load PDF"
- Go to styles and open the edited/created style, clicking on "Style Editor" doesn't open the style editor.
- Click on the "x" next to the font field and error message appears:
"Failed to process
script
window.frames[css_frm_name].setStyleTxt is not a function (TypeError)"
This issue isn't present on Firefox.
Hi,
This is caused by the double quotes in the font-name. Unfortunately the double-quotes are not correctly escaped. This is a bug and will be fixed with next Docmenta version. (For some reason Firefox automatically removes the double-quotes).
As a workaround, please replace the double quotes by single quotes. For example, replace "Courier New" by 'Courier New'.
Thanks, for the feedback.