first commit
This commit is contained in:
36
js/tinymce/classes/text/Zwsp.js
Normal file
36
js/tinymce/classes/text/Zwsp.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Zwsp.js
|
||||
*
|
||||
* Released under LGPL License.
|
||||
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
||||
*
|
||||
* License: http://www.tinymce.com/license
|
||||
* Contributing: http://www.tinymce.com/contributing
|
||||
*/
|
||||
|
||||
/**
|
||||
* ....
|
||||
*
|
||||
* @private
|
||||
* @class tinymce.text.Zwsp
|
||||
* @example
|
||||
* var isZwsp = Zwsp.isZwsp('\u200b');
|
||||
* var abc = Zwsp.trim('a\u200bc');
|
||||
*/
|
||||
define("tinymce/text/Zwsp", [], function() {
|
||||
var ZWSP = '\u200b';
|
||||
|
||||
function isZwsp(chr) {
|
||||
return chr == ZWSP;
|
||||
}
|
||||
|
||||
function trim(str) {
|
||||
return str.replace(new RegExp(ZWSP, 'g'), '');
|
||||
}
|
||||
|
||||
return {
|
||||
isZwsp: isZwsp,
|
||||
ZWSP: ZWSP,
|
||||
trim: trim
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user