function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jagadeesh AngadiJagadeesh Angadi 

html-maxlength attribute is not working for apex:inputtextarea with rich text is true


Below is my vf page line
<apex:inputtextarea html-maxlength="500" richText="true" styleClass="inputRichText"  id="inputRichText" value="{!some_Field__c}" />
html-maxlength is not working here, I mean text area excepting more than 500 characters. I guess html-maxlength attribute with richtext is not supported. Do we have any other options?
 
ShivankurShivankur (Salesforce Developers) 
Hi Jagadeesh,

Please check the approach over this link (https://forceforte.com/limit-character-count-for-apex-inputtextarea-in-visualforce-using-angularjs/), if it works for you.

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.
Jagadeesh AngadiJagadeesh Angadi
Hi Shivankur, No, it is not useful in my use case because, they are not using rich text functionality, they are working on normal textarea