Explorar el Código

WYSIWYG: Add DOCTYPE html to HTML documents created through CKEditor

Yannick Warnier hace 6 años
padre
commit
1e9543a8e6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      main/inc/lib/formvalidator/Element/HtmlEditor.php

+ 2 - 2
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);
                 }
             }