From 04ca7556674ee7754b576cd80ecf74b6d9be1c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20K=C3=BChn?= Date: Wed, 8 Dec 2021 18:57:58 +0100 Subject: [PATCH] show word count in charactercount demo --- demos/src/Extensions/CharacterCount/React/index.jsx | 2 ++ demos/src/Extensions/CharacterCount/Vue/index.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/demos/src/Extensions/CharacterCount/React/index.jsx b/demos/src/Extensions/CharacterCount/React/index.jsx index 244bcd80a31..8cf4c88bf43 100644 --- a/demos/src/Extensions/CharacterCount/React/index.jsx +++ b/demos/src/Extensions/CharacterCount/React/index.jsx @@ -35,6 +35,8 @@ export default () => {
{editor.storage.characterCount.characters()}/{limit} characters +
+ {editor.storage.characterCount.words()} words
) diff --git a/demos/src/Extensions/CharacterCount/Vue/index.vue b/demos/src/Extensions/CharacterCount/Vue/index.vue index 3aaa56afc6f..c7123c77e42 100644 --- a/demos/src/Extensions/CharacterCount/Vue/index.vue +++ b/demos/src/Extensions/CharacterCount/Vue/index.vue @@ -4,6 +4,8 @@
{{ editor.storage.characterCount.characters() }}/{{ limit }} characters +
+ {{ editor.storage.characterCount.words() }} words