FIX: only prevent clicks on links in the preview

This commit is contained in:
Régis Hanol 2016-07-27 20:53:45 +02:00
parent c4b52b1a19
commit e848c336bb
1 changed files with 4 additions and 2 deletions

View File

@ -211,8 +211,10 @@ export default Ember.Component.extend({
// disable clicking on links in the preview
this.$('.d-editor-preview').on('click.preview', e => {
if ($(e.target).is("a")) {
e.preventDefault();
return false;
}
});
this.appEvents.on('composer:insert-text', text => this._addText(this._getSelected(), text));