Re: javascript cleanuphtml and count number of characters

  •  05-16-2017, 3:42 AM

    Re: javascript cleanuphtml and count number of characters

    I found that the character count functions are not the same between  

    • (A) Demo one http://cutesoft.net/example/general.aspx
    • (B) the editor that I am using to reply this message
    • (C) My downloaded version (My editor version is 6.7.0.0)
    1. Line break
      (A) Do not count line break
      (B) Count line break
      (C) Do not count line break
    2. Key press
      (A) Will update count after key press 
      (B) Will update count after key press
      (C) Do not update count after key press 

     

    P.S. for the innerText function, it would count the line break also

    I just want to use javascript to get the character count same as the editor one 

View Complete Thread