Saleh
Saleh

Reputation: 2719

How to set the maximum length?

I have this code :

CKEDITOR.replace( 'textarea',
    {
        height : 200,
        uiColor : '#bf3f23',
        toolbar :
        [
            ['Styles', 'Format', 'Bold', 'Italic', 'NumberedList', 'BulletedList', '-', 'Link']
        ]
    });

How I can set the maximum length for the CKeditor and display a counter for it?

Upvotes: 0

Views: 1336

Answers (1)

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385405

This is functionality not supported, though it's scheduled for Milestone 3.x.

This blog post explains how you can hack the functionality in yourself, and here's a plug-in.

Source: Google ckeditor maximum length

Upvotes: 2

Related Questions