Skip to content

Commit

Permalink
Fix for special characters breaking out of XED editor when selecting …
Browse files Browse the repository at this point in the history
…them from the Character Map
  • Loading branch information
Semias committed Nov 4, 2011
1 parent ad5a5ec commit 47300c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion inc/app/xed/js/xed-compressed.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions inc/app/xed/js/xed.js
Expand Up @@ -1570,14 +1570,7 @@ function xed_charmap (ifname) {

function xed_insert_character (ifname, n) {
xed_historian (ifname);
if (document.all) {
sel = document.getElementById (ifname).contentWindow.document.selection;
range = sel.createRange ();
range.cutHTML;
range.pasteHTML ('&#' + n + ';');
} else {
xed_insert_html_at_selection (ifname, '&#' + n + ';');
}
document.getElementById (ifname).contentWindow.focus ();
return false;
}
Expand Down

0 comments on commit 47300c5

Please sign in to comment.