Current Path : /var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/crm/entity-editor/js/ |
Current File : /var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/crm/entity-editor/js/helper.min.js |
BX.namespace("BX.Crm");if(typeof BX.Crm.EditorTextHelper==="undefined"){BX.Crm.EditorTextHelper=function(){};BX.Crm.EditorTextHelper.prototype={selectAll:function(e){if(!(BX.type.isElementNode(e)&&e.value.length>0)){return}if(BX.type.isFunction(e.setSelectionRange)){e.setSelectionRange(0,e.value.length)}else{e.select()}},setPositionAtEnd:function(e){if(BX.type.isElementNode(e)&&e.value.length>0){BX.setCaretPosition(e,e.value.length)}}};BX.Crm.EditorTextHelper._current=null;BX.Crm.EditorTextHelper.getCurrent=function(){if(!this._current){this._current=new BX.Crm.EditorTextHelper}return this._current}} //# sourceMappingURL=helper.map.js