Deprecated: Assigning the return value of new by reference is deprecated in /homepages/32/d230485870/htdocs/jessmann/blog/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /homepages/32/d230485870/htdocs/jessmann/blog/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /homepages/32/d230485870/htdocs/jessmann/blog/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /homepages/32/d230485870/htdocs/jessmann/blog/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /homepages/32/d230485870/htdocs/jessmann/blog/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/wp-db.php on line 306

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/cache.php on line 431

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/http.php on line 61

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGenerator::Enable() should not be called statically in /homepages/32/d230485870/htdocs/jessmann/blog/wp-includes/plugin.php on line 339
Comments for Jess Mann http://jess-mann.com/blog Fri, 24 Mar 2017 12:03:13 +0000 http://wordpress.org/?v=2.7.1 hourly 1 Comment on TinyMCE wordcount with jQuery by Jonas Holm http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-12602 Jonas Holm Mon, 23 Apr 2012 12:48:01 +0000 http://jess-mann.com/blog/?p=21#comment-12602 Great post, This doesn't work with multiple instances of tinyMCE, thought. To be able to do so I use the following code: setup: function (ed) { var text = ""; var wordcount = false; ed.onKeyUp.add(function (ed, e) { if (!wordcount) { $('#' + ed.id +'_parent').after('0 words, 0 characters'); wordcount = true; } text = ed.getContent().replace(/(]+)<)/g, "").replace(/\s+/g, " "); text = $.trim(text); $('#' + ed.id + '_wordcount').html("" + text.split(' ').length + " words, " + text.length + " characters"); }); } Great post,
This doesn’t work with multiple instances of tinyMCE, thought. To be able to do so I use the following code:

setup: function (ed) {
var text = “”;
var wordcount = false;
ed.onKeyUp.add(function (ed, e) {
if (!wordcount) {
$(’#’ + ed.id +’_parent’).after(’0 words, 0 characters’);
wordcount = true;
}
text = ed.getContent().replace(/(]+)<)/g, “”).replace(/\s+/g, ” “);
text = $.trim(text);
$(’#’ + ed.id + ‘_wordcount’).html(”" +
text.split(’ ‘).length + ” words, ” + text.length + ” characters”);
});
}

]]>
Comment on TinyMCE wordcount with jQuery by admin http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-5206 admin Mon, 14 Feb 2011 17:15:10 +0000 http://jess-mann.com/blog/?p=21#comment-5206 @Peter Thanks for the contribution. I sent you an email about this, actually! Really appreciate the feedback :) @Peter Thanks for the contribution. I sent you an email about this, actually! Really appreciate the feedback :)

]]>
Comment on TinyMCE wordcount with jQuery by admin http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-5205 admin Mon, 14 Feb 2011 17:14:34 +0000 http://jess-mann.com/blog/?p=21#comment-5205 @John Hi John. To do that, you'd just have to create a new button, and add the functionality to that instead of to the onKeyUp event. I'm not a fan of the idea, but there is actually another wordcount plugin which works this way. If you have any trouble tracking it down, let me know and I might be able to help. @John Hi John. To do that, you’d just have to create a new button, and add the functionality to that instead of to the onKeyUp event. I’m not a fan of the idea, but there is actually another wordcount plugin which works this way. If you have any trouble tracking it down, let me know and I might be able to help.

]]>
Comment on TinyMCE wordcount with jQuery by Peter http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-5201 Peter Mon, 14 Feb 2011 15:52:12 +0000 http://jess-mann.com/blog/?p=21#comment-5201 Very good, thanks! Although I had to write "$" instead of "$j". I also moved the functions out into a separate js file as so... function tmceWordcount(ed) { var text = ""; var wordcount = false; ed.onKeyUp.add(function(ed, e) { if (!wordcount) { wordcount = addWordCount(ed); } text = ed.getContent().replace(/(]+)<)/g,"").replace(/\s+/g," "); text = $.trim(text); $('#' + ed.id + '_wordcount').html("" + text.split(' ').length + " words, " + text.length + " characters"); }); } function addWordCount(ed) { $('span.mceEditor').after('0 words, 0 characters'); return true; } then add the function call to the "init()" using the line: setup:'tmceWordcount' Very good, thanks! Although I had to write “$” instead of “$j”.

I also moved the functions out into a separate js file as so…

function tmceWordcount(ed) {
var text = “”;
var wordcount = false;
ed.onKeyUp.add(function(ed, e) {
if (!wordcount) { wordcount = addWordCount(ed); }
text = ed.getContent().replace(/(]+)<)/g,”").replace(/\s+/g,” “);
text = $.trim(text);
$(’#’ + ed.id + ‘_wordcount’).html(”" + text.split(’ ‘).length + ” words, ” + text.length + ” characters”);
});
}

function addWordCount(ed) {
$(’span.mceEditor’).after(’0 words, 0 characters’);
return true;
}

then add the function call to the “init()” using the line:

setup:’tmceWordcount’

]]>
Comment on TinyMCE wordcount with jQuery by john http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-4961 john Fri, 28 Jan 2011 11:41:26 +0000 http://jess-mann.com/blog/?p=21#comment-4961 hi jess, this is working fine. this is only working for keyboard event. if i want to count char/words when user click cut/paste button of editor's toolbar then what i have to do ? I can call this function but i dnt know where i have to put this. Thanks hi jess,
this is working fine.
this is only working for keyboard event.

if i want to count char/words when user click cut/paste button of editor’s toolbar then what i have to do ?

I can call this function but i dnt know where i have to put this.

Thanks

]]>
Comment on TinyMCE wordcount with jQuery by Salvador http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-4686 Salvador Fri, 14 Jan 2011 19:44:13 +0000 http://jess-mann.com/blog/?p=21#comment-4686 Hi Admin, thanks for your code, But....I get this error on line Syntax error in the HTML file D:\My Sites\TeleNotWebII\ES\PAGE_FNotas.htm line 82: the sequence of ' ' characters was found while an alphanumeric character string was expected. text = ed.getContent().replace(/(]+)<)/g,"").replace(/\s+/g," "); ^ (006, ERR_PARSER) could you help me please... Regards Hi Admin, thanks for your code,

But….I get this error on line
Syntax error in the HTML file D:\My Sites\TeleNotWebII\ES\PAGE_FNotas.htm line 82: the sequence of ‘ ‘ characters was found while an alphanumeric character string was expected.

text = ed.getContent().replace(/(]+)<)/g,”").replace(/\s+/g,” “);
^
(006, ERR_PARSER)

could you help me please…
Regards

]]>
Comment on My complaints with PHP by Dereus http://jess-mann.com/blog/2008/12/19/my-complaints-with-php/comment-page-1/#comment-4662 Dereus Thu, 13 Jan 2011 14:11:21 +0000 http://jess-mann.com/blog/2008/12/19/my-complaints-with-php/#comment-4662 I came across your webpage from twitter and it really is pretty informative. Thanks for discussing this kind of an incredible article. I came across your webpage from twitter and it really is pretty informative. Thanks for discussing this kind of an incredible article.

]]>
Comment on TinyMCE wordcount with jQuery by Nestor Ser http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-4651 Nestor Ser Thu, 13 Jan 2011 04:19:14 +0000 http://jess-mann.com/blog/?p=21#comment-4651 Your webpage appears to be excellent. Have a very decent morning. Your webpage appears to be excellent. Have a very decent morning.

]]>
Comment on TinyMCE wordcount with jQuery by Andy Br http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-2808 Andy Br Thu, 21 Oct 2010 11:01:09 +0000 http://jess-mann.com/blog/?p=21#comment-2808 You save my day, thanks ! You save my day, thanks !

]]>
Comment on TinyMCE wordcount with jQuery by Christian Louboutin http://jess-mann.com/blog/2009/04/04/tinymce-wordcount-with-jquery/comment-page-1/#comment-2801 Christian Louboutin Thu, 21 Oct 2010 05:31:24 +0000 http://jess-mann.com/blog/?p=21#comment-2801 Great writing! You might want to follow up to this topic =D Great writing! You might want to follow up to this topic =D

]]>