- Bugfix: WYSIWYG editor and plain text editor buttons insert footnote short code correctly (also if defined like html tag)

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@921814 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Aricura 2014-05-27 18:40:55 +00:00
parent 7c038dde35
commit 6a2688058d
5 changed files with 9 additions and 3 deletions

View file

@ -31,7 +31,7 @@
var l_arr_Tags = JSON.parse(data);
var return_text = l_arr_Tags['start'] + ed.selection.getContent() + l_arr_Tags['end'];
console.log(return_text);
ed.execCommand('mceInsertContent', 0, return_text);
ed.execCommand('insertHTML', true, return_text);
},
error: function(MLHttpRequest, textStatus, errorThrown){
console.log("Error: " + errorThrown);