X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..b6d96cd5994f160b56cb89f83555cf9c6e2a4446:/skins/custom_content/document_edit_form.py?ds=inline 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