File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function rename(newName) {
107107}
108108
109109function 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
300300function 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 } `
You can’t perform that action at this time.
0 commit comments