WYSIWYG: Add DOCTYPE html to HTML documents created through CKEditor

pull/2633/head
Yannick Warnier 7 years ago
parent f069add6e2
commit 1e9543a8e6
  1. 4
      main/inc/lib/formvalidator/Element/HtmlEditor.php

@ -59,9 +59,9 @@ class HtmlEditor extends HTML_QuickForm_textarea
if ($this->editor) {
if ($this->editor->getConfigAttribute('fullPage')) {
if (strlen(trim($value)) == 0) {
// TODO: To be considered whether here to be added DOCTYPE,
// TODO: To be considered whether here to add
// language and character set declarations.
$value = '<html><head><title></title></head><body></body></html>';
$value = '<!DOCTYPE html><html><head><title></title></head><body></body></html>';
$this->setValue($value);
}
}

Loading…
Cancel
Save