Permalink
Browse files

cleditor changes:

- Use a doctype of html.
- Force i.e. to use its latest rendering engine.
Conflicts:
	plugins/cleditor/default.php
  • Loading branch information...
1 parent 02cb363 commit 4df65c9e0d3236a4db9752f48f15f008a1958052 @tburry tburry committed Jan 7, 2013
Showing with 5 additions and 2 deletions.
  1. +2 −1 plugins/cleditor/default.php
  2. +3 −1 plugins/cleditor/js/jquery.cleditor.js
@@ -53,7 +53,7 @@
$PluginInfo['cleditor'] = array(
'Name' => 'WYSIWYG (CLEditor)',
'Description' => 'Adds a <a href="http://en.wikipedia.org/wiki/WYSIWYG">WYSIWYG</a> editor to your forum so that your users can enter rich text comments.',
- 'Version' => '1.2.4',
+ 'Version' => '1.2.7',
'Author' => "Mirabilia Media",
'AuthorEmail' => 'info@mirabiliamedia.com',
'AuthorUrl' => 'http://mirabiliamedia.com',
@@ -136,6 +136,7 @@ private function _AddCLEditor($Sender) {
"style | color highlight removeformat | bullets numbering | outdent indent | " +
"alignleft center alignright | undo redo | " +
"image link unlink | source fullscreen",
+ docType: '<!DOCTYPE html>',
docCSSFile: "$CssPath"
})[0];
this.editor = ed; // Support other plugins!
@@ -842,8 +842,10 @@ jQuery(document).ready(function($) {
doc.open();
doc.write(
options.docType +
- '<html>' +
+ '<html><head>' +
((options.docCSSFile === '') ? '' : '<head><link rel="stylesheet" type="text/css" href="' + options.docCSSFile + '" /></head>') +
+ '<meta http-equiv="X-UA-Compatible" content="IE=edge" />' +
+ '</head>' +
'<body style="' + options.bodyStyle + '"></body></html>'
);
doc.close();

0 comments on commit 4df65c9

Please sign in to comment.