mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-15 17:52:25 +02:00
Fix:Using arrow keys when editing podcast description #1826
This commit is contained in:
@ -213,7 +213,9 @@ export default {
|
||||
// Reload HTML content
|
||||
this.$refs.trix.editor.loadHTML(newContent)
|
||||
// Move cursor to end of new content updated
|
||||
this.$refs.trix.editor.setSelectedRange(this.getContentEndPosition())
|
||||
if (this.autofocus) {
|
||||
this.$refs.trix.editor.setSelectedRange(this.getContentEndPosition())
|
||||
}
|
||||
},
|
||||
getContentEndPosition() {
|
||||
return this.$refs.trix.editor.getDocument().toString().length - 1
|
||||
|
Reference in New Issue
Block a user