Commit 5bc74f5c authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Blog post with only images or allowed embed codes cannot be submitted (Bug #1023630)"

parents efb567e3 49b37dfa
......@@ -90,7 +90,7 @@ function pieform_element_wysiwyg(Pieform $form, $element) {
}
function pieform_element_wysiwyg_rule_required(Pieform $form, $value, $element, $check) {
return $check && strip_tags($value) === '' ? $form->i18n('rule', 'required', 'required', $element) : '';
return $check && strip_tags($value, '<img><iframe><object><embed>') === '' ? $form->i18n('rule', 'required', 'required', $element) : '';
}
function pieform_element_wysiwyg_get_headdata() {
......
Supports Markdown
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