Baidu Ueditor Modify the bottom right corner statistic words only statistics foreground see the number of words, in order to facilitate the display of the actual save time is to save the inclusion of HTML tags, so the lower right corner of the statistical word function needs to be modified
/**
* Calculate the length of the current content of the editor
* @name getcontentlength
* @grammar editor.getcontentlength (ingonehtml,tagnames) = >
* @example
* Editor.getlang (TRUE)
*
* July 1, 2013 16:53:15 comments dropped content to remove the number of HTML tags, The actual warehousing is to calculate the HTML tags and text so that the number of words to getcontents as quasi
* * *
getcontentlength:function (ingonehtml, tagnames) {
var count = This.getcontent (false,false,true). length;
/*if (ingonehtml) {
tagnames = (TagNames | | []). Concat ([' HR ', ' img ', ' iframe ']);
Count = This.getcontenttxt (). Replace (/[\t\r\n]+/g, '). Length;
for (var i = 0, ci; ci = tagnames[i++];) {
count + = This.document.getElementsByTagName (CI). length;
}
} *
/return count;
},
Find Ueditor.all.js This file finds 4944 lines to 4951 lines of comment off it's OK