Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:06:25+00:00 2026-05-23T12:06:25+00:00

How can I configure maximum number of rows in contenteditable attribute? I want to

  • 0

How can I configure maximum number of rows in contenteditable attribute?
I want to stop use after they will reach his capacity of characters for send in POST method.

I’m just using HTML 5. It’s a new atributte, you can google it. It’s value can be true or false. Contenteditable is not using windows enccoded new lines like: \r\n, but using creating divs and adding <br> tags to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:06:25+00:00Added an answer on May 23, 2026 at 12:06 pm

    You could just run some JavaScript on the element, like so:

    function check_len(){
        //disable editing, or something here
        if (element.innerHTML.length >= POST_limit)
            alert('you have reached the post limit');
    }
    

    And you could attach it to a keyup handler

    element.addEventListener('keyup',check_len,false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the best way to configure the maximum number of threads that can pull
How can I configure the maximum memory that a query (select query) can use
How do I configure the maximum number of users that can connect to a
I want to create an external js-file, in which I can configure the copy
Can I configure the VS.NET 2008 IDE to use gcc as a compiler?
Can I configure Redis slave to stop saving dumps? I have omitted all save
how i can configure cherokee 1.2 server with uWSGI and web2py? after some googling
I am wondering where (if possible) you can configure the number of backups, for
Requirements : You can have X number of people These X people will be
In weblogic I can configure in the console for the Serverlog to use log4j

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.