Skip to content

Commit

Permalink
cleditor changes:
Browse files Browse the repository at this point in the history
- Use a doctype of html.
- Force i.e. to use its latest rendering engine.
  • Loading branch information
tburry committed Jan 7, 2013
1 parent 5e8f400 commit f37de1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/cleditor/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.6',
'Version' => '1.2.7',
'Author' => "Mirabilia Media",
'AuthorEmail' => '[email protected]',
'AuthorUrl' => 'http://mirabiliamedia.com',
Expand Down Expand Up @@ -141,6 +141,7 @@ private function _AddCLEditor($Sender, $Column = 'Body') {
"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!
Expand Down
4 changes: 3 additions & 1 deletion plugins/cleditor/js/jquery.cleditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f37de1d

Please sign in to comment.