Skip to content

Commit 916e9c1

Browse files
author
Alexis Beingessner
committed
Ticket OscarGodson#132 - Adding in doctypes
1 parent 8e56ac8 commit 916e9c1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

epiceditor/js/epiceditor.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@
541541
'</div>'
542542

543543
// The previewer is just an empty box for the generated HTML to go into
544-
, previewer: '<div id="epiceditor-preview"></div>'
544+
, previewer: '<!doctype HTML><div id="epiceditor-preview"></div>'
545+
, editor: '<!doctype HTML>'
545546
};
546547

547548
// Write an iframe and then select it for the editor
@@ -572,7 +573,7 @@
572573
self.editorIframeDocument = _getIframeInnards(self.editorIframe);
573574
self.editorIframeDocument.open();
574575
// Need something for... you guessed it, Firefox
575-
self.editorIframeDocument.write('');
576+
self.editorIframeDocument.write(_HtmlTemplates.editor);
576577
self.editorIframeDocument.close();
577578

578579
// Setup the previewer iframe

0 commit comments

Comments
 (0)