Automatically insert video when iframe source is pasted into editor

This commit is contained in:
Kijin Sung 2017-02-18 17:04:07 +09:00
parent b340d95e18
commit a305745aa5
3 changed files with 17 additions and 1 deletions

View file

@ -326,6 +326,14 @@ jQuery(function($) {
}
};
/**
* @brief string prototype으로 unescape 함수 추가
**/
String.prototype.unescape = function() {
var map = { '&amp;': '&', '&lt;': '<', '&gt;': '>', '&quot;': '"', '&#039;': "'" };
return String(this).replace(/&(amp|lt|gt|quot|#039);/g, function(m) { return map[m]; });
};
/**
* @brief string prototype으로 trim 함수 추가
**/