Skip to content

Commit 1302185

Browse files
committed
Merge pull request #2587 from ajaxorg/fix/cdata-setttings
Re-applying the CDATA settings fix
2 parents 59191cb + c4ea949 commit 1302185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins-client/ext.editors/editors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ module.exports = ext.register("ext/editors/editors", {
974974
//popup a file watch dialog to ask if the user wants to
975975
//load the new file from disk, losing changes.
976976
if (copy.getAttribute("changed") == 1 && copy.getAttribute("newfile") == 1) {
977-
copy.appendChild(copy.ownerDocument.createCDATASection(
977+
copy.appendChild(copy.ownerDocument.createTextNode(
978978
(pages[i].$doc.getValue() || "")
979979
.replace(/\r/g, "\\r")
980980
.replace(/\n/g, "\\n")

0 commit comments

Comments
 (0)