X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..36188e56ec33245be4891e7752daec1533fc73dc:/skins/custom_content/document_edit_form.py 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