Skip to content

Allow blank answer in a rich-text-editor question #6342

Answered by jonatanschroeder
firasm asked this question in Q&A
Discussion options

You must be logged in to vote

You are changing the content, but not clearing the error. Try:

def parse(data):
    if '_files' in data['format_errors']:
        del data['format_errors']['_files']

And it's probably a good idea to have an issue for adding allow-blank to pl-rich-text-editor (and maybe pl-file-editor as well).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@firasm
Comment options

Answer selected by firasm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants