Skip to content

Commit

Permalink
fix(schematags): filter tags using uppercase input
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaju committed Oct 9, 2020
1 parent f797df5 commit 7b8ce13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/tinymce_plugins/schematags.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,11 @@ tinymce.PluginManager.add('schematags', function(editor) {
var query = e.control.value();
var menu = e.control.parent().items()[1];
menu.items().each(function(item) {
console.log(query, item, item.settings.key)
if (query == '') {
item.disabled(item.settings.initialFilterState);
item.visible(!item.settings.initialFilterState);
} else if (!item.settings.initialFilterState && item.settings.key && item.settings.key.toLowerCase().indexOf(query) != -1) {
} else if (!item.settings.initialFilterState && item.settings.key && item.settings.key.toLowerCase().indexOf(query.toLowerCase()) != -1) {
item.disabled(false);
item.visible(true);
} else {
Expand Down

0 comments on commit 7b8ce13

Please sign in to comment.