New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Character count to WYSIWYG #3720

Open
ulilicht opened this Issue Dec 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ulilicht

ulilicht commented Dec 7, 2018

Feature Request

Feature description

With the tickets #3717 and #3714, a character count was added to Textarea and Input elements. It would be great to have the same feature for WYSIWYG fields as well.

This would include:

  • A character count info on the WYSIWYG Editor
  • A setting in Pimcore DataObject how many characters are allowed for this input

There are plugins for CKEditor to realize this feature, e.g. this one: http://w8tcha.github.io/CKEditor-WordCount-Plugin/

My recommendation would be to include the plugin with the configuration

config.extraPlugins = 'wordcount';
config.wordcount = {
    // Whether or not you want to show the Word Count
    showWordCount: false,

    // Whether or not you want to show the Paragraphs Count
    showParagraphs: true,

    // Whether or not you want to show the Char Count
    showCharCount: true,

    // Whether or not you want to count Spaces as Chars
    countSpacesAsChars: true,

    // Maximum allowed Char Count
    maxCharCount: ##PIMCORE_VALUE##
};

Does anyone else need this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment