X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..4bad110d2687345b9277c20f96a77d2633ac4759:/skins/custom_content/document_edit_form.py?ds=sidebyside diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py index 82602ec..d652e57 100644 --- a/skins/custom_content/document_edit_form.py +++ b/skins/custom_content/document_edit_form.py @@ -11,13 +11,13 @@ if text and same_type(text, []) : if change and \ context.validateTextFile(**form) and \ context.validateHTML(**form) and \ - context.document_edit_control(**form) and \ + context.document_edit_control(text=form.get('text'), text_format='html') and \ context.setRedirect(context, 'object/edit', **{'ajax':ajax}): return elif change_and_view and \ context.validateTextFile(**form) and \ context.validateHTML(**form) and \ - context.document_edit_control(**form) and \ + context.document_edit_control(text=form.get('text'), text_format='html') and \ context.setRedirect(context, 'object/view', **{'ajax':ajax}): return