Skip to content

Commit

Permalink
Add dummy class to hidden span (bypass tinymce autocleanup)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDevooght committed Aug 19, 2013
1 parent bb4c05f commit 30d4265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mention/editor_plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mention/editor_plugin_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
renderInput: function() {
var rawHtml = '<span id="autocomplete">' +
'<span id="autocomplete-delimiter">' + this.options.delimiter + '</span>' +
'<span id="autocomplete-searchtext"><span>\uFEFF</span></span>' +
'<span id="autocomplete-searchtext"><span class="dummy">\uFEFF</span></span>' +
'</span>';

this.editor.execCommand('mceInsertContent', false, rawHtml);
Expand Down

0 comments on commit 30d4265

Please sign in to comment.