CKEditor ÀÇ Word Count & Char Count Plugin ÀÔ´Ï´Ù.
ÇØ´ç Ç÷α×ÀÎÀº ¿¡µðÅÍÀÇ ¹Ø ºÎºÐ¿¡ ¿¡µðÅÍ¿¡ ÀÔ·ÂµÈ ±ÛÀÇ ¼ö¿Í ´Ü¾îÀÇ ¼ö¸¦ º¸¿©ÁÖ´Â ±â´É ÀÔ´Ï´Ù.
ÇØ´ç ÀÚ·á¿¡ Æ÷ÇÔµÈ ¹öÁ¯Àº CKEditor 4.5 ¹öÁ¯¿¡¼¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
»ç¿ëÀÚÀÇ CKEditor ¹öÁ¯ÀÌ 4.5°¡ ¾Æ´Ò °æ¿ì Plugin ¹öÁ¯À» ´Ù¸¥ ¹öÁ¯À¸·Î ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù.
( ÀÚ¼¼ÇÑ »çÇ×Àº ¾Æ·¡ÀÇ À̹ÌÁö Âü°íÇØ ÁÖ¼¼¿ä ^^ )
¼³Ä¡¹æ¹ý ÀÔ´Ï´Ù. ^^
ÇØ´ç Ç÷α×ÀÎÀº ¼ÂÆÃÀ» ÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
config ÆÄÀÏ¿¡ ¾Æ·¡ÀÇ Äڵ带 Ãß°¡ÇØ Áֽðí ÀÔ¸À¿¡ ¸Â°Ô ¼³Á¤À» º¯°æÇÏ½Ã¸é µË´Ï´Ù. ^^
config.wordcount = {
// Whether or not you want to show the Paragraphs Count
showParagraphs: true,
// Whether or not you want to show the Word Count
showWordCount: true,
// Whether or not you want to show the Char Count
showCharCount: false,
// Whether or not you want to count Spaces as Chars
countSpacesAsChars: false,
// Whether or not to include Html chars in the Char Count
countHTML: false,
// Maximum allowed Word Count, -1 is default for unlimited
maxWordCount: -1,
// Maximum allowed Char Count, -1 is default for unlimited
maxCharCount: -1,
// Add filter to add or remove element before counting (see CKEDITOR.htmlParser.filter), Default value : null (no filter)
filter: new CKEDITOR.htmlParser.filter({
elements: {
div: function( element ) {
if(element.attributes.class == 'mediaembed') {
return false;
}
}
}
})
};
Plugin ¼³Ä¡ ¹× ¼ÂÆÃÀÌ ¿Ï·áµÇ¼Ì´Ù¸é ... ¾Æ·¡ÀÇ À̹ÌÁö ó·³ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ^^
|