1 Commits

Author SHA1 Message Date
dependabot[bot]
ee70c62fda Bump @hapi/hoek from 8.5.0 to 8.5.1
Bumps [@hapi/hoek](https://github.com/hapijs/hoek) from 8.5.0 to 8.5.1.
- [Release notes](https://github.com/hapijs/hoek/releases)
- [Commits](https://github.com/hapijs/hoek/compare/v8.5.0...v8.5.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 03:53:12 +00:00
2 changed files with 2197 additions and 22119 deletions

24310
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,21 +27,16 @@ export default {
},
data () {
return {
focused: false
focused: false,
body: ''
}
},
computed: {
valueModel: {
get () { return this.value },
set (value) {
this.$emit('input', value)
}
},
showPlaceholder () {
return !this.valueModel.replace(/^\s*\n/gm, '').length
return !this.body.replace(/^\s*\n/gm, '').length
},
computedBody () {
return highlight(this.valueModel, {
return highlight(this.body, {
extractUrlsWithoutProtocol: this.extractUrlsWithoutProtocol
})
}
@@ -69,14 +64,15 @@ export default {
},
clear () {
this.$refs.mbody.innerText = ''
this.valueModel = ''
this.body = ''
},
onKeyUp (e) {
let caretPosition = this.getCaretPos()
if (e.keyCode === 13) { // Enter key
caretPosition++
}
this.valueModel = e.target.innerText
this.body = e.target.innerText
this.$emit('input', this.body)
this.$nextTick(() => {
this.setCaretPos(caretPosition)
})