Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix for Bug #2222

  • Loading branch information...
commit 2ce21ad96178868bbaf5c35a413aeaf2028dac0a 1 parent e6f4c5f
julmis authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/editor/htmlarea.php
View
4 lib/editor/htmlarea.php
@@ -174,6 +174,7 @@ function HTMLArea(textarea, config) {
};
this.formatblock = {
+ "":"",
"<?php echo $strheading ?> 1": "h1",
"<?php echo $strheading ?> 2": "h2",
"<?php echo $strheading ?> 3": "h3",
@@ -662,7 +663,8 @@ function createButton(txt) {
html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; }</style>\n";
html += "</head>\n";
html += '<body>\n';
- html += editor._textArea.value;
+ // See bug #2222
+ html += (editor._textArea.value != null && editor._textArea.value != '') ? editor._textArea.value : '<p>&nbsp;</p>';
html += "</body>\n";
html += "</html>";
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.