FIX: only prevent clicks on links in the preview
This commit is contained in:
parent
c4b52b1a19
commit
e848c336bb
|
@ -211,8 +211,10 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
// disable clicking on links in the preview
|
// disable clicking on links in the preview
|
||||||
this.$('.d-editor-preview').on('click.preview', e => {
|
this.$('.d-editor-preview').on('click.preview', e => {
|
||||||
|
if ($(e.target).is("a")) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.appEvents.on('composer:insert-text', text => this._addText(this._getSelected(), text));
|
this.appEvents.on('composer:insert-text', text => this._addText(this._getSelected(), text));
|
||||||
|
|
Loading…
Reference in New Issue