mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:06:20 +08:00
Toolbar action replaceText
Should be possible to replace the current contents with some other text.
This commit is contained in:
parent
4bc57f3686
commit
57284495de
|
@ -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'),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user