Add 'textarea' editor skin for simple replacement

This commit is contained in:
Kijin Sung 2017-06-27 15:20:09 +09:00
parent e91c2114ab
commit 9f652e422f
4 changed files with 76 additions and 0 deletions

View file

@ -390,6 +390,13 @@ jQuery(function($) {
return String(this).replace(/&(amp|lt|gt|quot|#039);/g, function(m) { return map[m]; });
};
/**
* @brief string prototype으로 stripTags 함수 추가
**/
String.prototype.stripTags = function() {
return String(this).replace(/<\/?[a-z][^>]*>/ig, "");
};
/**
* @brief string prototype으로 trim 함수 추가
**/