Changeset 39
- Timestamp:
- 03/19/05 12:37:37 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
htmlarea.js (modified) (3 diffs)
-
plugins/Linker/linker.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r38 r39 241 241 if (this.baseURL && this.baseURL.match(/(.*)\/([^\/]+)/)) 242 242 this.baseURL = RegExp.$1 + "/"; 243 244 // CharSet of the iframe, default is the charset of the document 245 this.charSet = HTMLArea.is_gecko ? document.characterSet : document.charset; 243 246 244 247 // URL-s … … 1414 1417 var html = "<html>\n"; 1415 1418 html += "<head>\n"; 1416 if(typeof editor.config.baseHref != 'undefined') 1417 { 1418 html += "<base href=\"" + editor.config.baseHref + "\"/>"; 1419 html += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" + editor.config.charSet + "\">\n"; 1420 if(typeof editor.config.baseHref != 'undefined' && editor.config.baseHref != null) 1421 { 1422 html += "<base href=\"" + editor.config.baseHref + "\"/>\n"; 1419 1423 } 1420 1424 html += "<style title=\"table borders\">" … … 4338 4342 for(var i in data) 4339 4343 { 4340 content += (content.length ? '&' : '') + i + '=' + escape(data[i]); 4344 if(typeof data[i] == 'function') continue; 4345 // http://worldtimzone.com/blog/date/2002/09/24 4346 4347 content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]); 4341 4348 } 4342 4349 -
trunk/plugins/Linker/linker.js
r29 r39 101 101 if(j) 102 102 { 103 inputs[j[1]] = unescape(j[2]);103 inputs[j[1]] = decodeURIComponent(j[2]); 104 104 } 105 105 } … … 193 193 { 194 194 atr.href = 'mailto:' + values.to + '?'; 195 if(values.subject) atr.href += 'subject=' + e scape(values.subject);196 if(values.body) atr.href += (values.subject ? '&' : '') + 'body=' + e scape(values.body);195 if(values.subject) atr.href += 'subject=' + encodeURIComponent(values.subject); 196 if(values.body) atr.href += (values.subject ? '&' : '') + 'body=' + encodeURIComponent(values.body); 197 197 } 198 198 } … … 369 369 this.dTree.add(Linker.nxtid++, parent, 370 370 files[i].replace(/^.*\//, ''), 371 'javascript:document.getElementsByName(\'' + this.dialog.id.href + '\')[0].value= unescape(\'' + escape(files[i]) + '\');document.getElementsByName(\'' + this.dialog.id.type + '\')[0].click();document.getElementsByName(\'' + this.dialog.id.href + '\')[0].focus();void(0);',371 'javascript:document.getElementsByName(\'' + this.dialog.id.href + '\')[0].value=decodeURIComponent(\'' + encodeURIComponent(files[i]) + '\');document.getElementsByName(\'' + this.dialog.id.type + '\')[0].click();document.getElementsByName(\'' + this.dialog.id.href + '\')[0].focus();void(0);', 372 372 files[i]); 373 373 }
