code: function clear () {
        if (!window.confirm(i18n('Are you certain you want to clear your draft?'))) {
          return
        }
        textArea.value = ''
        hasContent.set(!!textArea.value)
        save()
      }
docs: scoped