Skip to content

Commit

Permalink
feat(NcRichContenteditable): add focus method
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme authored and backportbot-nextcloud[bot] committed Jun 27, 2023
1 parent f0c62e5 commit a2b1635
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,15 @@ export default {
},
methods: {
/**
* Focus the richContenteditable
*
* @public
*/
focus() {
this.$refs.contenteditable.focus()
},
getLink(item) {
// there is no way to get a tribute result asynchronously
// so we immediately insert a node and replace it when the result comes
Expand Down

0 comments on commit a2b1635

Please sign in to comment.