Skip to content

Commit

Permalink
show word count in charactercount demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kühn authored and Philipp Kühn committed Dec 8, 2021
1 parent 495446b commit 04ca755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demos/src/Extensions/CharacterCount/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default () => {

<div className="character-count">
{editor.storage.characterCount.characters()}/{limit} characters
<br />
{editor.storage.characterCount.words()} words
</div>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions demos/src/Extensions/CharacterCount/Vue/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

<div class="character-count" v-if="editor">
{{ editor.storage.characterCount.characters() }}/{{ limit }} characters
<br>
{{ editor.storage.characterCount.words() }} words
</div>
</div>
</template>
Expand Down

0 comments on commit 04ca755

Please sign in to comment.