Skip to content

Commit

Permalink
Custom Insert popover hide on clicking on anything on the screen fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviAnand111 committed Jan 26, 2022
1 parent 6efa143 commit 9acbb69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/PublicLab.Editor.js
Expand Up @@ -22758,7 +22758,12 @@ module.exports = function CustomInsert(_module, wysiwyg) {
}
});
const builder = require("./PublicLab.CustomInsert.Template.js");
$('.wk-commands').append('<a class="woofmark-command-insert btn btn-outline-secondary" data-toggle="insert" title="Custom Insert"><i class="fa fa-tags"></i></a>');
$('.wk-commands').append('<button class="woofmark-command-insert btn btn-outline-secondary" data-toggle="insert" title="Custom Insert"><i class="fa fa-tags"></i></button>');

$(document).ready(function() {
$('[data-toggle="insert"]').tooltip();
});

var Option1 = "Notes";
var Option2 = "List";
$('.woofmark-command-insert').attr('data-content', builder);
Expand Down

0 comments on commit 9acbb69

Please sign in to comment.