From de8c70a020ae226a784f604882b361b74f8e6343 Mon Sep 17 00:00:00 2001 From: Matt McManus Date: Fri, 23 Feb 2018 10:37:52 -0500 Subject: [PATCH] Pass showLinkTooltips option to editor --- README.md | 1 + addon/components/mobiledoc-editor/component.js | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index be63666..497691a 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ The component accepts these arguments: to use atoms with Ember components. * `spellcheck` boolean * `autofocus` boolean +* `showLinkTooltips` boolean * `placeholder` string -- the placeholder text to display when the mobiledoc is blank * `options` hash -- any properties in the `options` hash will be passed to the MobiledocKitEditor constructor * `serializeVersion` string -- The mobiledoc version to serialize to when firing the on-change action. Default: 0.3.2 diff --git a/addon/components/mobiledoc-editor/component.js b/addon/components/mobiledoc-editor/component.js index 3de153e..3e4c41e 100644 --- a/addon/components/mobiledoc-editor/component.js +++ b/addon/components/mobiledoc-editor/component.js @@ -54,6 +54,7 @@ export default Component.extend({ placeholder: 'Write here...', spellcheck: true, autofocus: true, + showLinkTooltips: true, serializeVersion: MOBILEDOC_VERSION, options: null, @@ -63,12 +64,13 @@ export default Component.extend({ let options = this.get('options') || {}; return assign({ - placeholder: this.get('placeholder'), - spellcheck: this.get('spellcheck'), - autofocus: this.get('autofocus'), - cardOptions: this.get('cardOptions'), - cards: this.get('cards') || [], - atoms: this.get('atoms') || [] + placeholder: this.get('placeholder'), + spellcheck: this.get('spellcheck'), + autofocus: this.get('autofocus'), + showLinkTooltips: this.get('showLinkTooltips'), + cardOptions: this.get('cardOptions'), + cards: this.get('cards') || [], + atoms: this.get('atoms') || [] }, options); }),