Skip to content

Commit

Permalink
Bug fix for Bug #2222
Browse files Browse the repository at this point in the history
  • Loading branch information
julmis committed Jan 15, 2005
1 parent e6f4c5f commit 2ce21ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/editor/htmlarea.php
Expand Up @@ -174,6 +174,7 @@ function HTMLArea(textarea, config) {
}; };


this.formatblock = { this.formatblock = {
"":"",
"<?php echo $strheading ?> 1": "h1", "<?php echo $strheading ?> 1": "h1",
"<?php echo $strheading ?> 2": "h2", "<?php echo $strheading ?> 2": "h2",
"<?php echo $strheading ?> 3": "h3", "<?php echo $strheading ?> 3": "h3",
Expand Down Expand Up @@ -662,7 +663,8 @@ function createButton(txt) {
html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; }</style>\n"; html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; }</style>\n";
html += "</head>\n"; html += "</head>\n";
html += '<body>\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 += "</body>\n";
html += "</html>"; html += "</html>";
} else { } else {
Expand Down

0 comments on commit 2ce21ad

Please sign in to comment.