Selaa lähdekoodia

WYSIWYG: Add DOCTYPE html to HTML documents created through CKEditor

Yannick Warnier 6 vuotta sitten
vanhempi
commit
1e9543a8e6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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);
                 }
             }