Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,17 +1074,17 @@ You should have received a copy of the GNU General Public License along with thi
//For contextmenu
$(document.body).mousedown(function(event) {
var target = $(event.target);
if (!target.parents().andSelf().is('#context-menu')) { // Clicked outside
if (!target.parents().addBack().is('#context-menu')) { // Clicked outside
$('#context-menu').remove();
}
if (!target.parents().andSelf().is('#specialchar') && (target.closest('a').html()!='<i class="fa fa-asterisk"></i>')) { //Clicked outside
if (!target.parents().addBack().is('#specialchar') && (target.closest('a').html()!='<i class="fa fa-asterisk"></i>')) { //Clicked outside
if($("#specialchar").is(':visible'))
{
$(editor_Content).data("editor").data("splcharsBtn", null);
$('#specialchar').remove();
}
}
if (!target.parents().andSelf().is('#paletteCntr') && (target.closest('a').html()!='<i class="fa fa-font"></i>')) { //Clicked outside
if (!target.parents().addBack().is('#paletteCntr') && (target.closest('a').html()!='<i class="fa fa-font"></i>')) { //Clicked outside
if($("#paletteCntr").is(':visible'))
{
$(editor_Content).data("editor").data("colorBtn", null);
Expand Down