Merge pull request #4621 from kgish/master

Toolbar action replaceText
This commit is contained in:
Robin Ward 2016-12-28 10:57:13 -05:00 committed by GitHub
commit 7515f4eec2
1 changed files with 1 additions and 0 deletions

View File

@ -552,6 +552,7 @@ export default Ember.Component.extend({
applySurround: (head, tail, exampleKey, opts) => this._applySurround(selected, head, tail, exampleKey, opts),
applyList: (head, exampleKey) => this._applyList(selected, head, exampleKey),
addText: text => this._addText(selected, text),
replaceText: text => this._addText({pre: '', post: ''}, text),
getText: () => this.get('value'),
};