Commit d48aaa38 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: editor only force html viewer for html document (not notebook)

parent a5b02d0a
......@@ -68,8 +68,7 @@
if ((!state_dict.editable) &&
((state_dict.editor === 'fck_editor') ||
(state_dict.content_type === 'text/html') ||
(!state_dict.content_type))) {
(state_dict.content_type === 'text/html'))) {
state_dict.editor = 'html_viewer';
}
return this.changeState(state_dict);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment