Skip to content

Commit 5c2967e

Browse files
authored
update editor.js
1 parent df58b10 commit 5c2967e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

editor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function rename(newName) {
107107
}
108108

109109
function download() {
110-
let input = tinymce.activeEditor.getContent({ format: 'html' });
110+
let input = tinymce.activeEditor.getContent({ format: 'raw' });
111111

112112
// create a new Blob object with the content you want to assign
113113
let blob = new Blob([input], {type: "text/plain"});
@@ -234,7 +234,7 @@ function previewHTML() {
234234
ext = title.split('.')[1]
235235
}
236236

237-
let value = tinymce.activeEditor.getContent({ format: 'html' });
237+
let value = tinymce.activeEditor.getContent({ format: 'raw' });
238238
textarea = document.querySelector('textarea')
239239

240240
let eleVal = 'documentElement'
@@ -299,7 +299,7 @@ function saveFile(value) {
299299

300300
function getShareLink() {
301301
let fileName = docTitle
302-
let fContent = tinymce.activeEditor.getContent({ format: 'html' });
302+
let fContent = tinymce.activeEditor.getContent({ format: 'raw' });
303303
fContent = btoa(fContent)
304304
let lHostPathName = `${location.host}/${location.pathname}`.replace('//', '/')
305305
let fLink = `${location.protocol}//${lHostPathName}?action=filelink&file=${fileName}&content=${fContent}`

0 commit comments

Comments
 (0)