got this from Ektron..

============

When you do a word count in the editor, we take into the account the HTML as
well because that HTML will be saved with the content as well.  If you are
doing a word count because of database size restrictions, you will want to
take the HTML into account as well.  If you want to do a word count on just
the text (no html tags) you would have to build a special button for that.
You could add a new button on the toolbar that can call the getBodyText()
method of the editor and then use JavaScript to give you a count of the
characters.



-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 13:38
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count


I did try regex'ing it looking for and stripping < > tags. Also, have tried
replacing some special characters. But there is a bit of inaccuracy anyway,
probably due to the spaces and breaks left after stripping which are
sometimes difficult to remove automatically during conversion to plain text.


Am looking for a tried and tested function or even a component in another
language which I could use maybe as a cfx for counting words which would
give me an accurate count?

Thanks,
Sandeep
 

-----Original Message-----
From: Douglas Humphris [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 13:26
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] HTML word count

Hi,
I don't know how soEditor counts the words as I've never really needed
that. Looks like it isn't accurate enough anyway.
Have you tried RegExing it then?
D

-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 13:18
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

Just tried soEditor, pasted some HTML into it with 38 words and it shows
48
words. Not so accurate!

-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 13:11
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

does word count in soEditor use regex for its word count function?

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 13:07
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

cool...never thought of using that, as we have eweditpro3.1

-----Original Message-----
From: Douglas Humphris [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 13:07
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] HTML word count


I use soEditor, and it has an integrated word count. 
D

-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 13:05
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

Does eWebEditPro have a integrated word count? am still looking for
something that can be integrated like a function (even cfx tags) which
take
in html and gives word count.... the spell checker in activedit gives me
some ideas....is there something similar which would give me the count
of
words instead of looping through each word as spell checker does?

Any advice, suggestions would be helpful

Thanks
Sandeep

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 12:50
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

We were requested to do just the same but we use eWebEditoPro...we
couldnt
really think of a way around it except using javascript etc.... and also
we
didnt really want to spend too much time on it as we didnt have access
to
the components methods.

We use JS most of the time,  but as you say the crappy &ing is a real
pain.



-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 12:50
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] HTML word count


Hi,
I have a requirement to count the number of words the user enters into
activedit (for translation purpose). We use activedit as our wysiwyg
editor
.As it is HTML content we would first need to strip out the HTML tags
and
then do the word count. I have searched macromedia exchange for any
tags/
functions which count words in HTML format. I have tried stripping out
HTML
and counting words but it is not perfect as there are some spaces, line
breaks and some characters (eg &nbsp;) which remain in the converted
text
causing incorrect count.
Please could anyone suggest a alternative method or existing
function/tag
which would help me. 


Thanks in advance,
Sandeep


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to