return;
}
$(document).on('touchstart click', function () {
- if (document.hasFocus()) {
- $this.checkBlocked();
- }
+ $this.checkBlocked();
return true;
});
if (!this.blocked) {
return;
}
- let $this = this;
this.get(function (c) {
}, true);
},
enabled: function () {
- return !this.blocked && this.support();
+ return this.support();
},
support: function () {
- return this.linkeditor.utils.isWindows() && !this.linkeditor.utils.isFirefox();
+ return !this.linkeditor.utils.isFirefox();
},
empty: function () {
.then(blob => {
blob.text()
.then(text => {
- if (text.indexOf('<fluidbooklinks>') === 0) {
+ if (text.indexOf('<fluidbooklinks>') >= 0) {
$this.content = text;
callback($this.content);
}
},
selectLink: function (l) {
- console.log($(l).find('.corners'));
if ($(l).find('.corners').length === 0) {
$(l).append('<div class="corners"><div class="nw"></div><div class="n"></div><div class="ne"></div><div class="e"></div><div class="se"></div><div class="s"></div><div class="sw"></div><div class="w"></div></div>')
}