Cute Editor Word Count regular expression

Last post 06-23-2014, 11:09 AM by srinufriend. 5 replies.
Sort Posts: Previous Next
  •  03-16-2010, 11:49 AM 59432

    Cute Editor Word Count regular expression

    How does the cute editor identify a word. I assume it does this via a regular expression.?
     
    I have written a custom validator that counts words in a string and I need the regular expression to be the same as the regular expression used by the cute editor for identifying words.
     
     
  •  03-22-2010, 11:04 AM 59568 in reply to 59432

    Re: Cute Editor Word Count regular expression

    Naeem,
     
    Cute editor doesn't use regular expression to identify a word.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-06-2014, 12:00 PM 80279 in reply to 59568

    Re: Cute Editor Word Count regular expression

     Hi,

    I want to treat phone number "123-123-1234" as only one word. Is it possible in cuteEditor 6.7 version?

     

    Thanks in advance.

    Srinivasa Reddy N

  •  05-12-2014, 9:18 AM 80287 in reply to 80279

    Re: Cute Editor Word Count regular expression

    Hi srinufriend,

     

    Can not acheive this for now, sorry for your inconvenience.

     

    Regards,

     

    Ken 

  •  05-16-2014, 9:26 AM 80299 in reply to 80287

    Re: Cute Editor Word Count regular expression

    Hi Ken,

    Thanks for your timely response!

    I may ask you same question repeatedly but, please bare with me for few seconds to get some workaround for this problem.

     

    Word around 1: 

    By default cute editor is treating space (' ') and hyphen ('-') as word separators. In my case I have to treat only space (character) as word separator. In cuteeditor config files, is there any configuration which I can modify to achieve this? if through configuration it is not possible, please give us the details like .js file nameand method name which is responsible to calculate and display word count and character count.

     

     Workaround 2:

    If above Can I attach an exctra event to cute editor to count words? If yes where and how can I do this? Please explian with a working example. 

     

    Just asking out of my curiousity, What javascript function/method is getting called currently to display words and characters in Cute Editor footer? and in which file I can see this javascript or server method?

     

    Thanks & Regards,

    Srinivasa Reddy N 

  •  06-23-2014, 11:09 AM 80341 in reply to 80299

    Re: Cute Editor Word Count regular expression

    Hi,

     

    I could adopt a work around for my problem by modifying browser specific implementation javascript files.

     

    Thank you,

    Srinivasa Reddy N 

View as RSS news feed in XML