File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.DeferredOperation=function(t,e,l){this._delay=t,this._context=e,this._callback=l,this._completeCallback=null,this._errorCallback=null,this._timer=null,this._callArgs=null,this._isComplete=!1,this._completedSynchronously=!1,this._asyncResult=null,this._exception=null,this._throwExceptions=!0,this._oncomplete$delegate=Function.createDelegate(this,this._oncomplete),this.post=Function.createDelegate(this,this.post)},Sys.Extended.UI.DeferredOperation.prototype={get_isPending:function(){return null!=this._timer},get_isComplete:function(){return this._isComplete},get_completedSynchronously:function(){return this._completedSynchronously},get_exception:function(){return this._exception},get_throwExceptions:function(){return this._throwExceptions},set_throwExceptions:function(t){this._throwExceptions=t},get_delay:function(){return this._delay},set_delay:function(t){this._delay=t},post:function(t){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];this.beginPost(e,null,null)},beginPost:function(t,e,l){if(this.cancel(),this._callArgs=Array.clone(t||[]),this._completeCallback=e,this._errorCallback=l,this._delay==-1)try{this._oncomplete()}finally{this._completedSynchronously=!0}else this._timer=setTimeout(this._oncomplete$delegate,this._delay)},cancel:function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._callArgs=null,this._isComplete=!1,this._asyncResult=null,this._completeCallback=null,this._errorCallback=null,this._exception=null,this._completedSynchronously=!1},call:function(t){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];this.cancel(),this._callArgs=e,this._completeCallback=null,this._errorCallback=null;try{this._oncomplete()}finally{this._completedSynchronously=!0}if(this._exception)throw this._exception;return this._asyncResult},complete:function(){if(this._timer){try{this._oncomplete()}finally{this._completedSynchronously=!0}return this._asyncResult}if(this._isComplete)return this._asyncResult},_oncomplete:function(){var t=this._callArgs,e=this._completeCallback,l=this._errorCallback;this.cancel();try{t?this._asyncResult=this._callback.apply(this._context,t):this._asyncResult=this._callback.call(this._context),this._isComplete=!0,this._completedSynchronously=!1,e&&e(this)}catch(t){if(this._isComplete=!0,this._completedSynchronously=!1,this._exception=t,l&&l(this))return;if(this._throwExceptions)throw t}}},Sys.Extended.UI.DeferredOperation.registerClass("Sys.Extended.UI.DeferredOperation");
|
||||
Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DeferredOperation=function(n,t,i){this._delay=n;this._context=t;this._callback=i;this._completeCallback=null;this._errorCallback=null;this._timer=null;this._callArgs=null;this._isComplete=!1;this._completedSynchronously=!1;this._asyncResult=null;this._exception=null;this._throwExceptions=!0;this._oncomplete$delegate=Function.createDelegate(this,this._oncomplete);this.post=Function.createDelegate(this,this.post)};Sys.Extended.UI.DeferredOperation.prototype={get_isPending:function(){return this._timer!=null},get_isComplete:function(){return this._isComplete},get_completedSynchronously:function(){return this._completedSynchronously},get_exception:function(){return this._exception},get_throwExceptions:function(){return this._throwExceptions},set_throwExceptions:function(n){this._throwExceptions=n},get_delay:function(){return this._delay},set_delay:function(n){this._delay=n},post:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.beginPost(t,null,null)},beginPost:function(n,t,i){if(this.cancel(),this._callArgs=Array.clone(n||[]),this._completeCallback=t,this._errorCallback=i,this._delay==-1)try{this._oncomplete()}finally{this._completedSynchronously=!0}else this._timer=setTimeout(this._oncomplete$delegate,this._delay)},cancel:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._callArgs=null;this._isComplete=!1;this._asyncResult=null;this._completeCallback=null;this._errorCallback=null;this._exception=null;this._completedSynchronously=!1},call:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.cancel();this._callArgs=t;this._completeCallback=null;this._errorCallback=null;try{this._oncomplete()}finally{this._completedSynchronously=!0}if(this._exception)throw this._exception;return this._asyncResult},complete:function(){if(this._timer){try{this._oncomplete()}finally{this._completedSynchronously=!0}return this._asyncResult}if(this._isComplete)return this._asyncResult},_oncomplete:function(){var n=this._callArgs,t=this._completeCallback,i=this._errorCallback;this.cancel();try{this._asyncResult=n?this._callback.apply(this._context,n):this._callback.call(this._context);this._isComplete=!0;this._completedSynchronously=!1;t&&t(this)}catch(r){if(this._isComplete=!0,this._completedSynchronously=!1,this._exception=r,i&&i(this))return;if(this._throwExceptions)throw r;}}};Sys.Extended.UI.DeferredOperation.registerClass("Sys.Extended.UI.DeferredOperation");
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Sys.Timer=function(){Sys.Timer.initializeBase(this),this._interval=1e3,this._enabled=!1,this._timer=null},Sys.Timer.prototype={get_interval:function(){return this._interval},set_interval:function(t){this._interval!==t&&(this._interval=t,this.raisePropertyChanged("interval"),this.get_isUpdating()||null===this._timer||(this._stopTimer(),this._startTimer()))},get_enabled:function(){return this._enabled},set_enabled:function(t){t!==this.get_enabled()&&(this._enabled=t,this.raisePropertyChanged("enabled"),this.get_isUpdating()||(t?this._startTimer():this._stopTimer()))},add_tick:function(t){this.get_events().addHandler("tick",t)},remove_tick:function(t){this.get_events().removeHandler("tick",t)},dispose:function(){this.set_enabled(!1),this._stopTimer(),Sys.Timer.callBaseMethod(this,"dispose")},updated:function(){Sys.Timer.callBaseMethod(this,"updated"),this._enabled&&(this._stopTimer(),this._startTimer())},_timerCallback:function(){var t=this.get_events().getHandler("tick");t&&t(this,Sys.EventArgs.Empty)},_startTimer:function(){this._timer=window.setInterval(Function.createDelegate(this,this._timerCallback),this._interval)},_stopTimer:function(){window.clearInterval(this._timer),this._timer=null}},Sys.Timer.descriptor={properties:[{name:"interval",type:Number},{name:"enabled",type:Boolean}],events:[{name:"tick"}]},Sys.Timer.registerClass("Sys.Timer",Sys.Component);
|
||||
Sys.Timer=function(){Sys.Timer.initializeBase(this);this._interval=1e3;this._enabled=!1;this._timer=null};Sys.Timer.prototype={get_interval:function(){return this._interval},set_interval:function(n){this._interval!==n&&(this._interval=n,this.raisePropertyChanged("interval"),this.get_isUpdating()||this._timer===null||(this._stopTimer(),this._startTimer()))},get_enabled:function(){return this._enabled},set_enabled:function(n){n!==this.get_enabled()&&(this._enabled=n,this.raisePropertyChanged("enabled"),this.get_isUpdating()||(n?this._startTimer():this._stopTimer()))},add_tick:function(n){this.get_events().addHandler("tick",n)},remove_tick:function(n){this.get_events().removeHandler("tick",n)},dispose:function(){this.set_enabled(!1);this._stopTimer();Sys.Timer.callBaseMethod(this,"dispose")},updated:function(){Sys.Timer.callBaseMethod(this,"updated");this._enabled&&(this._stopTimer(),this._startTimer())},_timerCallback:function(){var n=this.get_events().getHandler("tick");n&&n(this,Sys.EventArgs.Empty)},_startTimer:function(){this._timer=window.setInterval(Function.createDelegate(this,this._timerCallback),this._interval)},_stopTimer:function(){window.clearInterval(this._timer);this._timer=null}};Sys.Timer.descriptor={properties:[{name:"interval",type:Number},{name:"enabled",type:Boolean}],events:[{name:"tick"}]};Sys.Timer.registerClass("Sys.Timer",Sys.Component);
|
||||
@@ -1 +1 @@
|
||||
Sys.ComponentSet=function(e,t,n){this._elementSet=e||(e=new Sys.ElementSet),this._components=this._execute(e,t,n)},Sys.ComponentSet.prototype={__class:!0,setProperties:function(e){return this.each(function(){Sys._set(this,e)})},get:function(e){var t=this._components;return"undefined"==typeof e?Array.apply(null,t):t[e||0]||null},each:function(e){return foreach(this._components,function(t,n){if(e.call(t,n)===!1)return!0}),this},elements:function(){return this._elementSet},_execute:function(e,t,n){function o(e){var n;return e instanceof t||(n=e.constructor)&&(n===t||n.inheritsFrom&&n.inheritsFrom(t)||n.implementsInterface&&n.implementsInterface(t))}var r=[];return t instanceof Array?r.push.apply(r,t):e.each(function(){var e=this.control;!e||t&&!o(e)||r.push(e),foreach(this._behaviors,function(e){t&&!o(e)||r.push(e)})}),"undefined"!=typeof n&&(r=r[n]?[r[n]]:[]),r}};
|
||||
Sys.ComponentSet=function(n,t,i){this._elementSet=n||(n=new Sys.ElementSet);this._components=this._execute(n,t,i)};Sys.ComponentSet.prototype={__class:!0,setProperties:function(n){return this.each(function(){Sys._set(this,n)})},get:function(n){var t=this._components;return typeof n=="undefined"?Array.apply(null,t):t[n||0]||null},each:function(n){return foreach(this._components,function(t,i){if(n.call(t,i)===!1)return!0}),this},elements:function(){return this._elementSet},_execute:function(n,t,i){function u(n){var i;return n instanceof t||(i=n.constructor)&&(i===t||i.inheritsFrom&&i.inheritsFrom(t)||i.implementsInterface&&i.implementsInterface(t))}var r=[];return t instanceof Array?r.push.apply(r,t):n.each(function(){var n=this.control;n&&(!t||u(n))&&r.push(n);foreach(this._behaviors,function(n){(!t||u(n))&&r.push(n)})}),typeof i!="undefined"&&(r=r[i]?[r[i]]:[]),r}};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.DraggableListItem=function(e){Sys.Extended.UI.DraggableListItem.initializeBase(this,[e]),this._data=null,this._handle=null,this._dragVisualTemplate=null,this._dragVisualTemplateInstance=null,this._mouseDownHandler=null},Sys.Extended.UI.DraggableListItem.prototype={dispose:function(){this.get_element();this.set_handle(null),Sys.Extended.UI.DraggableListItem.callBaseMethod(this,"dispose")},get_data:function(){if(null==this._data){var e=this._findDragSource();if(null!=e&&Sys.Extended.UI.DragDropList.IsValidDataType(e.get_dragDataType()))return this.get_element()}return this._data},set_data:function(e){this._data!=e&&(this._data=e,this.raisePropertyChanged("data"))},get_handle:function(){return this._handle},set_handle:function(e){null!=this._handle&&($removeHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=null),e?(e.element&&(e=e.element),this._handle=e,this.raisePropertyChanged("handle"),this._handle.__draggableBehavior=this,$addHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=this):this._handle=null},get_mouseDownHandler:function(){return null==this._mouseDownHandler&&(this._mouseDownHandler=Function.createDelegate(this,this._onMouseDown)),this._mouseDownHandler},get_dragVisualTemplate:function(){return this._dragVisualTemplate},set_dragVisualTemplate:function(e){this._dragVisualTemplate!=e&&(this._dragVisualTemplate=e,this.raisePropertyChanged("dragVisualTemplate"))},_onMouseDown:function(e){window._event=e.rawEvent,this._handle.__draggableBehavior._mouseDownHandlerInternal(e)},_mouseDownHandlerInternal:function(e){var e=window.testEvent?window.testEvent:e;if(e.button<=1){var t=this._findDragSource();if(null!=t){var a=this._createDragVisual();t.startDragDrop(this.get_element(),this.get_data(),a),e.returnValue=!1}}},_createDragVisual:function(){var e=window.testEvent?window.testEvent:window.event;if(null!=this._dragVisualTemplate){null==this._dragVisualTemplateInstance?this._dragVisualTemplateInstance=this._dragVisualTemplate.cloneElement():Sys.UI.DragDropManager._getInstance().hasParent(this._dragVisualTemplateInstance)||this.get_element().appendChild(this._dragVisualTemplateInstance);var t={x:e.clientX,y:e.clientY};t=Sys.UI.DragDropManager._getInstance().addPoints(t,Sys.UI.DragDropManager._getInstance().getScrollOffset(document.body,!0)),$common.setLocation(this._dragVisualTemplateInstance,t)}return this._dragVisualTemplateInstance},_findDragSource:function(){for(var e=this.get_element();null!=e;){if(null!=e.__dragDropList)return e.__dragDropList;e=e.parentNode}return null}},Sys.Extended.UI.DraggableListItem.registerClass("Sys.Extended.UI.DraggableListItem",Sys.Extended.UI.BehaviorBase);
|
||||
Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DraggableListItem=function(n){Sys.Extended.UI.DraggableListItem.initializeBase(this,[n]);this._data=null;this._handle=null;this._dragVisualTemplate=null;this._dragVisualTemplateInstance=null;this._mouseDownHandler=null};Sys.Extended.UI.DraggableListItem.prototype={dispose:function(){var n=this.get_element();this.set_handle(null);Sys.Extended.UI.DraggableListItem.callBaseMethod(this,"dispose")},get_data:function(){if(this._data==null){var n=this._findDragSource();if(n!=null&&Sys.Extended.UI.DragDropList.IsValidDataType(n.get_dragDataType()))return this.get_element()}return this._data},set_data:function(n){this._data!=n&&(this._data=n,this.raisePropertyChanged("data"))},get_handle:function(){return this._handle},set_handle:function(n){this._handle!=null&&($removeHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=null);n?(n.element&&(n=n.element),this._handle=n,this.raisePropertyChanged("handle"),this._handle.__draggableBehavior=this,$addHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=this):this._handle=null},get_mouseDownHandler:function(){return this._mouseDownHandler==null&&(this._mouseDownHandler=Function.createDelegate(this,this._onMouseDown)),this._mouseDownHandler},get_dragVisualTemplate:function(){return this._dragVisualTemplate},set_dragVisualTemplate:function(n){this._dragVisualTemplate!=n&&(this._dragVisualTemplate=n,this.raisePropertyChanged("dragVisualTemplate"))},_onMouseDown:function(n){window._event=n.rawEvent;this._handle.__draggableBehavior._mouseDownHandlerInternal(n)},_mouseDownHandlerInternal:function(n){var n=window.testEvent?window.testEvent:n,t,i;n.button<=1&&(t=this._findDragSource(),t!=null&&(i=this._createDragVisual(),t.startDragDrop(this.get_element(),this.get_data(),i),n.returnValue=!1))},_createDragVisual:function(){var t=window.testEvent?window.testEvent:window.event,n;return this._dragVisualTemplate!=null&&(this._dragVisualTemplateInstance==null?this._dragVisualTemplateInstance=this._dragVisualTemplate.cloneElement():Sys.UI.DragDropManager._getInstance().hasParent(this._dragVisualTemplateInstance)||this.get_element().appendChild(this._dragVisualTemplateInstance),n={x:t.clientX,y:t.clientY},n=Sys.UI.DragDropManager._getInstance().addPoints(n,Sys.UI.DragDropManager._getInstance().getScrollOffset(document.body,!0)),$common.setLocation(this._dragVisualTemplateInstance,n)),this._dragVisualTemplateInstance},_findDragSource:function(){for(var n=this.get_element();n!=null;){if(n.__dragDropList!=null)return n.__dragDropList;n=n.parentNode}return null}};Sys.Extended.UI.DraggableListItem.registerClass("Sys.Extended.UI.DraggableListItem",Sys.Extended.UI.BehaviorBase);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Sys.Extended.UI.FloatingBehavior=function(t){function e(t){window._event=t;var e=this.get_element();this.checkCanDrag(t.target)&&(i=$common.getLocation(e),t.preventDefault(),this.startDragDrop(e))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[t]);var n,o,i,r,a,s=Function.createDelegate(this,e);this.add_move=function(t){this.get_events().addHandler("move",t)},this.remove_move=function(t){this.get_events().removeHandler("move",t)},this.get_handle=function(){return n},this.set_handle=function(t){null!=n&&$removeHandler(n,"mousedown",s),n=t,$addHandler(n,"mousedown",s)},this.get_profileProperty=function(){return r},this.set_profileProperty=function(t){r=t},this.get_profileComponent=function(){return a},this.set_profileComponent=function(t){a=t},this.get_location=function(){return o},this.set_location=function(t){o!=t&&(o=t,this.get_isInitialized()&&$common.setLocation(this.get_element(),o),this.raisePropertyChanged("location"))},this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize"),Sys.Extended.UI.DragDropManager.registerDropTarget(this);var t=this.get_element();o||(o=$common.getLocation(t)),t.style.position="fixed",$common.setLocation(t,o)},this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this),n&&s&&$removeHandler(n,"mousedown",s),s=null,Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")},this.checkCanDrag=function(t){var e=["input","button","select","textarea","label"],n=t.tagName;return!("a"==n.toLowerCase()&&null!=t.href&&t.href.length>0)&&!(Array.indexOf(e,n.toLowerCase())>-1)},this.get_dragDataType=function(){return"_floatingObject"},this.getDragData=function(t){return null},this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move},this.onDragStart=function(){},this.onDrag=function(){},this.onDragEnd=function(t){if(!t){var e=this.get_events().getHandler("move");if(e){var n=new Sys.CancelEventArgs;e(this,n),t=n.get_cancel()}}var r=this.get_element();t?$common.setLocation(r,i):(o=$common.getLocation(r),this.raisePropertyChanged("location"))},this.startDragDrop=function(t){Sys.Extended.UI.DragDropManager.startDragDrop(this,t,null)},this.get_dropTargetElement=function(){return document.body},this.canDrop=function(t,e,n){return"_floatingObject"==e},this.drop=function(t,e,n){},this.onDragEnterTarget=function(t,e,n){},this.onDragLeaveTarget=function(t,e,n){},this.onDragInTarget=function(t,e,n){}},Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);
|
||||
Sys.Extended.UI.FloatingBehavior=function(n){function o(n){window._event=n;var t=this.get_element();this.checkCanDrag(n.target)&&(u=$common.getLocation(t),n.preventDefault(),this.startDragDrop(t))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[n]);var i,t,u,f,e,r=Function.createDelegate(this,o);this.add_move=function(n){this.get_events().addHandler("move",n)};this.remove_move=function(n){this.get_events().removeHandler("move",n)};this.get_handle=function(){return i};this.set_handle=function(n){i!=null&&$removeHandler(i,"mousedown",r);i=n;$addHandler(i,"mousedown",r)};this.get_profileProperty=function(){return f};this.set_profileProperty=function(n){f=n};this.get_profileComponent=function(){return e};this.set_profileComponent=function(n){e=n};this.get_location=function(){return t};this.set_location=function(n){t!=n&&(t=n,this.get_isInitialized()&&$common.setLocation(this.get_element(),t),this.raisePropertyChanged("location"))};this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize");Sys.Extended.UI.DragDropManager.registerDropTarget(this);var n=this.get_element();t||(t=$common.getLocation(n));n.style.position="fixed";$common.setLocation(n,t)};this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this);i&&r&&$removeHandler(i,"mousedown",r);r=null;Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")};this.checkCanDrag=function(n){var t=n.tagName;return t.toLowerCase()=="a"&&n.href!=null&&n.href.length>0?!1:Array.indexOf(["input","button","select","textarea","label"],t.toLowerCase())>-1?!1:!0};this.get_dragDataType=function(){return"_floatingObject"};this.getDragData=function(){return null};this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move};this.onDragStart=function(){};this.onDrag=function(){};this.onDragEnd=function(n){var i,r,f;n||(i=this.get_events().getHandler("move"),i&&(r=new Sys.CancelEventArgs,i(this,r),n=r.get_cancel()));f=this.get_element();n?$common.setLocation(f,u):(t=$common.getLocation(f),this.raisePropertyChanged("location"))};this.startDragDrop=function(n){Sys.Extended.UI.DragDropManager.startDragDrop(this,n,null)};this.get_dropTargetElement=function(){return document.body};this.canDrop=function(n,t){return t=="_floatingObject"};this.drop=function(){};this.onDragEnterTarget=function(){};this.onDragLeaveTarget=function(){};this.onDragInTarget=function(){}};Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.HoverBehavior=function(e){Sys.Extended.UI.HoverBehavior.initializeBase(this,[e]),this._elementHandlers=null,this._hoverElementHandlers=null,this._hoverElement=null,this._hoverCount=0,this._unhoverDelay=0,this._hoverDelay=0,this._hoverScript=null,this._unhoverScript=null,this._hoverFired=!1},Sys.Extended.UI.HoverBehavior.prototype={_setupHandlersArray:function(){var e=[];return e[0]=Function.createDelegate(this,this._onHover),e[1]=Function.createDelegate(this,this._onUnhover),e},get_elementHandlers:function(){return this._elementHandlers||(this._elementHandlers=this._setupHandlersArray()),this._elementHandlers},get_hoverElementHandlers:function(){return this._hoverElementHandlers||(this._hoverElementHandlers=this._setupHandlersArray()),this._hoverElementHandlers},get_hoverElement:function(){return this._hoverElement},set_hoverElement:function(e){e!=this._hoverElement&&(this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!1),this._hoverElement=e,this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!0))},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(e){this._hoverDelay=e,this.raisePropertyChanged("hoverDelay")},get_hoverScript:function(){return this._hoverScript},set_hoverScript:function(e){this._hoverScript=e},get_unhoverDelay:function(){return this._unhoverDelay},set_unhoverDelay:function(e){this._unhoverDelay=e,this.raisePropertyChanged("unhoverDelay")},get_unhoverScript:function(){return this._unhoverScript},set_unhoverScript:function(e){this._unhoverScript=e},dispose:function(){var e=this.get_element();if(this._elementHandlers){var t=this.get_elementHandlers();this._setupHandlers(e,t,!1),this._elementHandlers=null}if(this._hoverElement){var t=this.get_hoverElementHandlers();this._setupHandlers(this._hoverElement,t,!1),this._hoverElement=null}Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"initialize");var e=this.get_elementHandlers();this._setupHandlers(this.get_element(),e,!0),this._hoverElement&&(e=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,e,!0))},add_hover:function(e){this.get_events().addHandler("hover",e)},remove_hover:function(e){this.get_events().removeHandler("hover",e)},_fireHover:function(){if(this._hoverCount&&!this._hoverFired){var handler=this.get_events().getHandler("hover");handler&&handler(this,Sys.EventArgs.Empty),this._hoverScript&&eval(this._hoverScript),this._hoverFired=!0}},_onHover:function(){this._hoverCount++,this._hoverDelay?window.setTimeout(Function.createDelegate(this,this._fireHover),this._hoverDelay):this._fireHover()},add_unhover:function(e){this.get_events().addHandler("unhover",e)},remove_unhover:function(e){this.get_events().removeHandler("unhover",e)},_fireUnhover:function(){if(this._hoverFired&&!this._hoverCount){this._hoverFired=!1;var handler=this.get_events().getHandler("unhover");handler&&handler(this,Sys.EventArgs.Empty),this._unhoverScript&&eval(this._unhoverScript)}},_onUnhover:function(){this._hoverCount--,this._hoverCount<=0&&(this._hoverCount=0,this._unhoverDelay?window.setTimeout(Function.createDelegate(this,this._fireUnhover),this._unhoverDelay):this._fireUnhover())},_setupHandlers:function(e,t,r){this.get_isInitialized()&&e&&(r?($addHandler(e,"mouseover",t[0]),$addHandler(e,"focus",t[0]),$addHandler(e,"mouseout",t[1]),$addHandler(e,"blur",t[1])):($removeHandler(e,"mouseover",t[0]),$removeHandler(e,"focus",t[0]),$removeHandler(e,"mouseout",t[1]),$removeHandler(e,"blur",t[1])))}},Sys.Extended.UI.HoverBehavior.descriptor={properties:[{name:"hoverElement",isDomElement:!0},{name:"unhoverDelay",type:Number}],events:[{name:"hover"},{name:"unhover"}]},Sys.Extended.UI.HoverBehavior.registerClass("Sys.Extended.UI.HoverBehavior",Sys.Extended.UI.BehaviorBase);
|
||||
Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.HoverBehavior=function(n){Sys.Extended.UI.HoverBehavior.initializeBase(this,[n]);this._elementHandlers=null;this._hoverElementHandlers=null;this._hoverElement=null;this._hoverCount=0;this._unhoverDelay=0;this._hoverDelay=0;this._hoverScript=null;this._unhoverScript=null;this._hoverFired=!1};Sys.Extended.UI.HoverBehavior.prototype={_setupHandlersArray:function(){var n=[];return n[0]=Function.createDelegate(this,this._onHover),n[1]=Function.createDelegate(this,this._onUnhover),n},get_elementHandlers:function(){return this._elementHandlers||(this._elementHandlers=this._setupHandlersArray()),this._elementHandlers},get_hoverElementHandlers:function(){return this._hoverElementHandlers||(this._hoverElementHandlers=this._setupHandlersArray()),this._hoverElementHandlers},get_hoverElement:function(){return this._hoverElement},set_hoverElement:function(n){n!=this._hoverElement&&(this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!1),this._hoverElement=n,this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!0))},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(n){this._hoverDelay=n;this.raisePropertyChanged("hoverDelay")},get_hoverScript:function(){return this._hoverScript},set_hoverScript:function(n){this._hoverScript=n},get_unhoverDelay:function(){return this._unhoverDelay},set_unhoverDelay:function(n){this._unhoverDelay=n;this.raisePropertyChanged("unhoverDelay")},get_unhoverScript:function(){return this._unhoverScript},set_unhoverScript:function(n){this._unhoverScript=n},dispose:function(){var t=this.get_element(),n;this._elementHandlers&&(n=this.get_elementHandlers(),this._setupHandlers(t,n,!1),this._elementHandlers=null);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!1),this._hoverElement=null);Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"initialize");var n=this.get_elementHandlers();this._setupHandlers(this.get_element(),n,!0);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!0))},add_hover:function(n){this.get_events().addHandler("hover",n)},remove_hover:function(n){this.get_events().removeHandler("hover",n)},_fireHover:function(){if(this._hoverCount&&!this._hoverFired){var handler=this.get_events().getHandler("hover");handler&&handler(this,Sys.EventArgs.Empty);this._hoverScript&&eval(this._hoverScript);this._hoverFired=!0}},_onHover:function(){this._hoverCount++;this._hoverDelay?window.setTimeout(Function.createDelegate(this,this._fireHover),this._hoverDelay):this._fireHover()},add_unhover:function(n){this.get_events().addHandler("unhover",n)},remove_unhover:function(n){this.get_events().removeHandler("unhover",n)},_fireUnhover:function(){if(this._hoverFired&&!this._hoverCount){this._hoverFired=!1;var handler=this.get_events().getHandler("unhover");handler&&handler(this,Sys.EventArgs.Empty);this._unhoverScript&&eval(this._unhoverScript)}},_onUnhover:function(){this._hoverCount--;this._hoverCount<=0&&(this._hoverCount=0,this._unhoverDelay?window.setTimeout(Function.createDelegate(this,this._fireUnhover),this._unhoverDelay):this._fireUnhover())},_setupHandlers:function(n,t,i){this.get_isInitialized()&&n&&(i?($addHandler(n,"mouseover",t[0]),$addHandler(n,"focus",t[0]),$addHandler(n,"mouseout",t[1]),$addHandler(n,"blur",t[1])):($removeHandler(n,"mouseover",t[0]),$removeHandler(n,"focus",t[0]),$removeHandler(n,"mouseout",t[1]),$removeHandler(n,"blur",t[1])))}};Sys.Extended.UI.HoverBehavior.descriptor={properties:[{name:"hoverElement",isDomElement:!0},{name:"unhoverDelay",type:Number}],events:[{name:"hover"},{name:"unhover"}]};Sys.Extended.UI.HoverBehavior.registerClass("Sys.Extended.UI.HoverBehavior",Sys.Extended.UI.BehaviorBase);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.Editor=function(e){Sys.Extended.UI.HtmlEditor.Editor.initializeBase(this,[e]),this._editPanel=null,this._changingToolbar=null,(Sys.Extended.UI.HtmlEditor.isIE&&8==Sys.Browser.version&&"BackCompat"!=document.compatMode||Sys.Extended.UI.HtmlEditor.isOpera)&&(this._onresize$delegate=Function.createDelegate(this,this._onresize))},Sys.Extended.UI.HtmlEditor.Editor.prototype={get_autofocus:function(){return this._editPanel.get_autofocus()},set_autofocus:function(e){this._editPanel.set_autofocus(e)},get_content:function(){return this._editPanel.get_content()},set_content:function(e){this._editPanel.set_content(e)},get_activeMode:function(){return this._editPanel.get_activeMode()},set_activeMode:function(e){this._editPanel.set_activeMode(e)},get_editPanel:function(){return this._editPanel},set_editPanel:function(e){this._editPanel=e},get_changingToolbar:function(){return this._changingToolbar},set_changingToolbar:function(e){this._changingToolbar=e},add_propertyChanged:function(e){this._editPanel.add_propertyChanged(e)},remove_propertyChanged:function(e){this._editPanel.remove_propertyChanged(e)},initialize:function(){Sys.Extended.UI.HtmlEditor.Editor.callBaseMethod(this,"initialize");var e=this.get_element(),t=e.className;if(Sys.UI.DomElement.removeCssClass(e,t),Sys.UI.DomElement.addCssClass(e,"ajax__htmleditor_editor_base"),Sys.UI.DomElement.addCssClass(e,t),Sys.Extended.UI.HtmlEditor.isIE||"BackCompat"==document.compatMode||(this.get_element().style.height="100%"),Sys.Extended.UI.HtmlEditor.isIE&&8==Sys.Browser.version&&"BackCompat"!=document.compatMode||Sys.Extended.UI.HtmlEditor.isOpera){$addHandlers(e,{resize:this._onresize$delegate});var i=this.get_editPanel();this._saved_setActive=i._setActive,i._setActive=Function.createDelegate(this,this._setActive);var s=this;Sys.Extended.UI.HtmlEditor.isOpera?setTimeout(function(){s._ensureVisibleResize()},0):s._ensureVisibleResize()}},_setActive:function(e){var t=this;Function.createDelegate(this.get_editPanel(),this._saved_setActive)(e),Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element())?t._ensureVisibleResize():setTimeout(function(){t._ensureVisibleResize()},0)},_ensureVisibleResize:function(){var e,t=!1;Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element())||(t=!0,e=Sys.Extended.UI.HtmlEditor.setElementVisibility(this.get_element())),this._onresize(),t&&(Sys.Extended.UI.HtmlEditor.restoreElementVisibility(e),delete e)},dispose:function(){(Sys.Extended.UI.HtmlEditor.isIE&&8==Sys.Browser.version&&"BackCompat"!=document.compatMode||Sys.Extended.UI.HtmlEditor.isOpera)&&($common.removeHandlers(this.get_element(),{resize:this._onresize$delegate}),this.get_editPanel()._setActive=this._saved_setActive),Sys.Extended.UI.HtmlEditor.Editor.callBaseMethod(this,"dispose")},_onresize:function(e){try{var t=this.get_editPanel().get_element().parentNode;"undefined"!=typeof e&&null!=e||(t.style.height="");var i=Sys.Extended.UI.HtmlEditor.Editor.MidleCellHeightForIE(t.parentNode.parentNode.parentNode,t.parentNode);t.style.height=i,"undefined"!=typeof this.get_editPanel().get_activePanel()._onresize&&this.get_editPanel().get_activePanel()._onresize()}catch(e){}return!0}},Sys.Extended.UI.HtmlEditor.Editor.registerClass("Sys.Extended.UI.HtmlEditor.Editor",Sys.UI.Control),Sys.Extended.UI.HtmlEditor.Editor.MidleCellHeightForIE=function(e,t){var i="100%";if(Sys.Extended.UI.HtmlEditor.isIE&&"BackCompat"!=document.compatMode||Sys.Extended.UI.HtmlEditor.isOpera)try{for(var s=2,n=0;n<e.rows.length;n++)e.rows[n]!=t&&(s+=e.rows[n].offsetHeight+1);var o=e.clientHeight;if(8==Sys.Browser.version||Sys.Extended.UI.HtmlEditor.isOpera){var d=e.style.height,r=e.parentNode.style.height;d.indexOf("px")>0?o=parseInt(d):"100%"==d&&r.indexOf("px")>0&&(o=parseInt(r))}i=100*(o-s)/(1*o)+"%"}catch(e){i=""}return i};
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.Editor=function(n){Sys.Extended.UI.HtmlEditor.Editor.initializeBase(this,[n]);this._editPanel=null;this._changingToolbar=null;(Sys.Extended.UI.HtmlEditor.isIE&&Sys.Browser.version==8&&document.compatMode!="BackCompat"||Sys.Extended.UI.HtmlEditor.isOpera)&&(this._onresize$delegate=Function.createDelegate(this,this._onresize))};Sys.Extended.UI.HtmlEditor.Editor.prototype={get_autofocus:function(){return this._editPanel.get_autofocus()},set_autofocus:function(n){this._editPanel.set_autofocus(n)},get_content:function(){return this._editPanel.get_content()},set_content:function(n){this._editPanel.set_content(n)},get_activeMode:function(){return this._editPanel.get_activeMode()},set_activeMode:function(n){this._editPanel.set_activeMode(n)},get_editPanel:function(){return this._editPanel},set_editPanel:function(n){this._editPanel=n},get_changingToolbar:function(){return this._changingToolbar},set_changingToolbar:function(n){this._changingToolbar=n},add_propertyChanged:function(n){this._editPanel.add_propertyChanged(n)},remove_propertyChanged:function(n){this._editPanel.remove_propertyChanged(n)},initialize:function(){var n,t,i,r;Sys.Extended.UI.HtmlEditor.Editor.callBaseMethod(this,"initialize");n=this.get_element();t=n.className;Sys.UI.DomElement.removeCssClass(n,t);Sys.UI.DomElement.addCssClass(n,"ajax__htmleditor_editor_base");Sys.UI.DomElement.addCssClass(n,t);Sys.Extended.UI.HtmlEditor.isIE||document.compatMode=="BackCompat"||(this.get_element().style.height="100%");(Sys.Extended.UI.HtmlEditor.isIE&&Sys.Browser.version==8&&document.compatMode!="BackCompat"||Sys.Extended.UI.HtmlEditor.isOpera)&&($addHandlers(n,{resize:this._onresize$delegate}),i=this.get_editPanel(),this._saved_setActive=i._setActive,i._setActive=Function.createDelegate(this,this._setActive),r=this,Sys.Extended.UI.HtmlEditor.isOpera?setTimeout(function(){r._ensureVisibleResize()},0):r._ensureVisibleResize())},_setActive:function(n){var t=this;Function.createDelegate(this.get_editPanel(),this._saved_setActive)(n);Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element())?t._ensureVisibleResize():setTimeout(function(){t._ensureVisibleResize()},0)},_ensureVisibleResize:function(){var t=!1,n;Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element())||(t=!0,n=Sys.Extended.UI.HtmlEditor.setElementVisibility(this.get_element()));this._onresize();t&&(Sys.Extended.UI.HtmlEditor.restoreElementVisibility(n),delete n)},dispose:function(){(Sys.Extended.UI.HtmlEditor.isIE&&Sys.Browser.version==8&&document.compatMode!="BackCompat"||Sys.Extended.UI.HtmlEditor.isOpera)&&($common.removeHandlers(this.get_element(),{resize:this._onresize$delegate}),this.get_editPanel()._setActive=this._saved_setActive);Sys.Extended.UI.HtmlEditor.Editor.callBaseMethod(this,"dispose")},_onresize:function(n){var t,i;try{t=this.get_editPanel().get_element().parentNode;(typeof n=="undefined"||n==null)&&(t.style.height="");i=Sys.Extended.UI.HtmlEditor.Editor.MidleCellHeightForIE(t.parentNode.parentNode.parentNode,t.parentNode);t.style.height=i;typeof this.get_editPanel().get_activePanel()._onresize!="undefined"&&this.get_editPanel().get_activePanel()._onresize()}catch(r){}return!0}};Sys.Extended.UI.HtmlEditor.Editor.registerClass("Sys.Extended.UI.HtmlEditor.Editor",Sys.UI.Control);Sys.Extended.UI.HtmlEditor.Editor.MidleCellHeightForIE=function(n,t){var f="100%",e,i,r,u,o;if(Sys.Extended.UI.HtmlEditor.isIE&&document.compatMode!="BackCompat"||Sys.Extended.UI.HtmlEditor.isOpera)try{for(e=2,i=0;i<n.rows.length;i++)n.rows[i]!=t&&(e+=n.rows[i].offsetHeight+1);r=n.clientHeight;(Sys.Browser.version==8||Sys.Extended.UI.HtmlEditor.isOpera)&&(u=n.style.height,o=n.parentNode.style.height,u.indexOf("px")>0?r=parseInt(u):u=="100%"&&o.indexOf("px")>0&&(r=parseInt(o)));f=(r-e)*100/(r*1)+"%"}catch(s){f=""}return f};
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.ActiveModeType=function(){},Sys.Extended.UI.HtmlEditor.ActiveModeType.prototype={Design:0,Html:1,Preview:2},Sys.Extended.UI.HtmlEditor.ActiveModeType_checkValue=function(e){return e>=0&&e<=2},Sys.Extended.UI.HtmlEditor.ActiveModeType.registerEnum("Sys.Extended.UI.HtmlEditor.ActiveModeType",!0);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.ActiveModeType=function(){};Sys.Extended.UI.HtmlEditor.ActiveModeType.prototype={Design:0,Html:1,Preview:2};Sys.Extended.UI.HtmlEditor.ActiveModeType_checkValue=function(n){return n>=0&&n<=2?!0:!1};Sys.Extended.UI.HtmlEditor.ActiveModeType.registerEnum("Sys.Extended.UI.HtmlEditor.ActiveModeType",!0);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs=function(e,t,d){if(3!=arguments.length)throw Error.parameterCount();Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.initializeBase(this),this._oldMode=e,this._newMode=t,this._editPanel=d},Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.prototype={get_oldMode:function(){return this._oldMode},get_newMode:function(){return this._newMode},get_editPanel:function(){return this._editPanel}},Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.registerClass("Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs",Sys.EventArgs);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs=function(n,t,i){if(arguments.length!=3)throw Error.parameterCount();Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.initializeBase(this);this._oldMode=n;this._newMode=t;this._editPanel=i};Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.prototype={get_oldMode:function(){return this._oldMode},get_newMode:function(){return this._newMode},get_editPanel:function(){return this._editPanel}};Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs.registerClass("Sys.Extended.UI.HtmlEditor.ActiveModeChangedArgs",Sys.EventArgs);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.HtmlPanel=function(e){Sys.Extended.UI.HtmlEditor.HtmlPanel.initializeBase(this,[e]),this._onfocus$delegate=Function.createDelegate(this,this._onfocus),Sys.Extended.UI.HtmlEditor.isIE&&"BackCompat"!=document.compatMode&&(this._onresize$delegate=Function.createDelegate(this,this._onresize))},Sys.Extended.UI.HtmlEditor.HtmlPanel.prototype={_activate:function(e){this._shouldResize=!1;var t=this.get_element();if(Sys.Extended.UI.HtmlEditor.isIE&&Sys.Browser.version>6&&"BackCompat"!=document.compatMode&&t.parentNode.clientHeight>0&&(this._shouldResize=!0),Sys.Extended.UI.HtmlEditor.HtmlPanel.callBaseMethod(this,"_activate"),Sys.Extended.UI.HtmlEditor.isIE){t.value="";setTimeout(function(){t.value=e},0)}else t.value=e;$addHandlers(t,{focus:this._onfocus$delegate}),this._shouldResize&&$addHandlers(t,{resize:this._onresize$delegate}),this._activateFinished()},_deactivate:function(){var e=this.get_element();this._shouldResize&&$common.removeHandlers(e,{resize:this._onresize$delegate}),this._shouldResize=!1,$common.removeHandlers(e,{focus:this._onfocus$delegate}),e.value="",Sys.Extended.UI.HtmlEditor.HtmlPanel.callBaseMethod(this,"_deactivate")},_getContent:function(){return this.get_element().value},_setContent:function(e){if(this.get_element().value=e,Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element().parentNode))try{var t=this.get_element();t.focus(),setTimeout(function(){try{Sys.Extended.UI.HtmlEditor.setSelectionRange(t,0,0)}catch(e){}},0)}catch(e){}},_focus:function(){if(Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element().parentNode))try{var e=this.get_element();e.focus(),setTimeout(function(){try{Sys.Extended.UI.HtmlEditor.setSelectionRange(e,0,0)}catch(e){}},0)}catch(e){}var t=this;setTimeout(function(){t._focused()},0)},_onfocus:function(e){this._really_focused();var t=this.get_element();return setTimeout(function(){t.focus()},0),!0},_onresize:function(e){var t=this.get_element(),i=t.parentNode.clientHeight;i>0&&(t.style.height=i+"px")}},Sys.Extended.UI.HtmlEditor.HtmlPanel.registerClass("Sys.Extended.UI.HtmlEditor.HtmlPanel",Sys.Extended.UI.HtmlEditor.ModePanel);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.HtmlPanel=function(n){Sys.Extended.UI.HtmlEditor.HtmlPanel.initializeBase(this,[n]);this._onfocus$delegate=Function.createDelegate(this,this._onfocus);Sys.Extended.UI.HtmlEditor.isIE&&document.compatMode!="BackCompat"&&(this._onresize$delegate=Function.createDelegate(this,this._onresize))};Sys.Extended.UI.HtmlEditor.HtmlPanel.prototype={_activate:function(n){var t,i;this._shouldResize=!1;t=this.get_element();Sys.Extended.UI.HtmlEditor.isIE&&Sys.Browser.version>6&&document.compatMode!="BackCompat"&&t.parentNode.clientHeight>0&&(this._shouldResize=!0);Sys.Extended.UI.HtmlEditor.HtmlPanel.callBaseMethod(this,"_activate");Sys.Extended.UI.HtmlEditor.isIE?(t.value="",i=this,setTimeout(function(){t.value=n},0)):t.value=n;$addHandlers(t,{focus:this._onfocus$delegate});this._shouldResize&&$addHandlers(t,{resize:this._onresize$delegate});this._activateFinished()},_deactivate:function(){var n=this.get_element();this._shouldResize&&$common.removeHandlers(n,{resize:this._onresize$delegate});this._shouldResize=!1;$common.removeHandlers(n,{focus:this._onfocus$delegate});n.value="";Sys.Extended.UI.HtmlEditor.HtmlPanel.callBaseMethod(this,"_deactivate")},_getContent:function(){return this.get_element().value},_setContent:function(n){if(this.get_element().value=n,Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element().parentNode))try{var t=this.get_element();t.focus();setTimeout(function(){try{Sys.Extended.UI.HtmlEditor.setSelectionRange(t,0,0)}catch(n){}},0)}catch(i){}},_focus:function(){var n,t;if(Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element().parentNode))try{n=this.get_element();n.focus();setTimeout(function(){try{Sys.Extended.UI.HtmlEditor.setSelectionRange(n,0,0)}catch(t){}},0)}catch(i){}t=this;setTimeout(function(){t._focused()},0)},_onfocus:function(){this._really_focused();var n=this.get_element();return setTimeout(function(){n.focus()},0),!0},_onresize:function(){var n=this.get_element(),t=n.parentNode.clientHeight;t>0&&(n.style.height=t+"px")}};Sys.Extended.UI.HtmlEditor.HtmlPanel.registerClass("Sys.Extended.UI.HtmlEditor.HtmlPanel",Sys.Extended.UI.HtmlEditor.ModePanel);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.ModePanel=function(t){Sys.Extended.UI.HtmlEditor.ModePanel.initializeBase(this,[t]),this._activated=!1,this._isActivating=!1,this._editPanel=null,this._cachedContent=null,this._onbeforeunload$delegate=Function.createDelegate(this,this._onbeforeunload)},Sys.Extended.UI.HtmlEditor.ModePanel.prototype={set_editPanel:function(t){this._editPanel=t},get_content:function(){return this._activated?this._getContent():null!=this._cachedContent?this._cachedContent:""},set_content:function(t){if(this._cachedContent=t,this._activated||this._isActivating){if(this._isActivating){var e=this;return setTimeout(function(){e.set_content(t)},10),!1}this._setContent(t)}else this._activate(t);return!0},_activate:function(){this.get_element().style.display="",this._isActivating=!0},_activateFinished:function(){this._activated=!0,this._isActivating=!1,this._editPanel._setActive(),this._editPanel.get_autofocus()&&this._focus()},_deactivate:function(){this.get_element().style.display="none",this._activated=!1,this._isActivating=!1},initialize:function(){Sys.Extended.UI.HtmlEditor.ModePanel.callBaseMethod(this,"initialize"),Sys.Extended.UI.HtmlEditor.isIE&&$addHandlers(window,{beforeunload:this._onbeforeunload$delegate})},dispose:function(){Sys.Extended.UI.HtmlEditor.isIE&&$common.removeHandlers(window,{beforeunload:this._onbeforeunload$delegate}),this._activated&&(Sys.Extended.UI.HtmlEditor.isIE&&this._onbeforeunload(),this._deactivate()),Sys.Extended.UI.HtmlEditor.ModePanel.callBaseMethod(this,"dispose")},_onbeforeunload:function(){this._activated&&(this._editPanel._contentPrepared||(this._editPanel._prepareContentForPostback(this.get_content()),this._editPanel._contentPrepared=!0))},_getContent:function(){return null!=this._cachedContent?this._cachedContent:""},_setContent:function(t){},_focus:function(){this._focused()},_focused:function(t){this._editPanel._focused(t),this._editPanel.set_autofocus(!0)},_really_focused:function(){this._editPanel._really_focused(),this._editPanel.set_autofocus(!0)}},Sys.Extended.UI.HtmlEditor.ModePanel.registerClass("Sys.Extended.UI.HtmlEditor.ModePanel",Sys.UI.Control);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.ModePanel=function(n){Sys.Extended.UI.HtmlEditor.ModePanel.initializeBase(this,[n]);this._activated=!1;this._isActivating=!1;this._editPanel=null;this._cachedContent=null;this._onbeforeunload$delegate=Function.createDelegate(this,this._onbeforeunload)};Sys.Extended.UI.HtmlEditor.ModePanel.prototype={set_editPanel:function(n){this._editPanel=n},get_content:function(){return this._activated?this._getContent():this._cachedContent!=null?this._cachedContent:""},set_content:function(n){if(this._cachedContent=n,this._activated||this._isActivating){if(this._isActivating){var t=this;return setTimeout(function(){t.set_content(n)},10),!1}this._setContent(n)}else this._activate(n);return!0},_activate:function(){this.get_element().style.display="";this._isActivating=!0},_activateFinished:function(){this._activated=!0;this._isActivating=!1;this._editPanel._setActive();this._editPanel.get_autofocus()&&this._focus()},_deactivate:function(){this.get_element().style.display="none";this._activated=!1;this._isActivating=!1},initialize:function(){Sys.Extended.UI.HtmlEditor.ModePanel.callBaseMethod(this,"initialize");Sys.Extended.UI.HtmlEditor.isIE&&$addHandlers(window,{beforeunload:this._onbeforeunload$delegate})},dispose:function(){Sys.Extended.UI.HtmlEditor.isIE&&$common.removeHandlers(window,{beforeunload:this._onbeforeunload$delegate});this._activated&&(Sys.Extended.UI.HtmlEditor.isIE&&this._onbeforeunload(),this._deactivate());Sys.Extended.UI.HtmlEditor.ModePanel.callBaseMethod(this,"dispose")},_onbeforeunload:function(){this._activated&&(this._editPanel._contentPrepared||(this._editPanel._prepareContentForPostback(this.get_content()),this._editPanel._contentPrepared=!0))},_getContent:function(){return this._cachedContent!=null?this._cachedContent:""},_setContent:function(){},_focus:function(){this._focused()},_focused:function(n){this._editPanel._focused(n);this._editPanel.set_autofocus(!0)},_really_focused:function(){this._editPanel._really_focused();this._editPanel.set_autofocus(!0)}};Sys.Extended.UI.HtmlEditor.ModePanel.registerClass("Sys.Extended.UI.HtmlEditor.ModePanel",Sys.UI.Control);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup=function(t){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.initializeBase(this,[t]),this._relatedElement=null},Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.prototype={get_relatedElement:function(){return this._relatedElement},set_relatedElement:function(t){this._relatedElement=t},open:function(t){if(null!=this._relatedElement){var e=this;if(!this.checkCorrectLoaded(function(){e.open(t)}))return;for(var o=$common.getLocation(this._relatedElement),i=o.x,s=o.y+this._relatedElement.offsetHeight,d=this.get_element().parentNode;d&&d.tagName&&"BODY"!=d.tagName.toUpperCase();){var l=Sys.Extended.UI.HtmlEditor.getStyle(d,"position");if("absolute"==l||"fixed"==l){var n=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(d,"top")),p=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(d,"left"));isNaN(n)||isNaN(p)||(i-=p,s-=n);break}if("relative"==l){var a=$common.getLocation(d);i-=a.x,s-=a.y}d=d.parentNode}var r=Sys.Extended.UI.HtmlEditor.getClientViewportElement(this._iframe),h=r.clientWidth+r.scrollLeft,c=r.clientHeight+r.scrollTop;s<r.scrollTop&&(s=r.scrollTop),i<r.scrollLeft&&(i=r.scrollLeft),s+this._iframe.offsetHeight>c&&(s-=s+this._iframe.offsetHeight-c),i+this._iframe.offsetWidth>h&&(i-=i+this._iframe.offsetWidth-h),Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"open",[t,s,i])}},close:function(t){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"close",[t])},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"dispose")}},Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup",Sys.Extended.UI.HtmlEditor.Popups.Popup);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup=function(n){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.initializeBase(this,[n]);this._relatedElement=null};Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.prototype={get_relatedElement:function(){return this._relatedElement},set_relatedElement:function(n){this._relatedElement=n},open:function(n){var h,f,e,o,s;if(this._relatedElement!=null){if(h=this,!this.checkCorrectLoaded(function(){h.open(n)}))return;for(var c=$common.getLocation(this._relatedElement),i=c.x,r=c.y+this._relatedElement.offsetHeight,t=this.get_element().parentNode;t&&t.tagName&&t.tagName.toUpperCase()!="BODY";){if(f=Sys.Extended.UI.HtmlEditor.getStyle(t,"position"),f=="absolute"||f=="fixed"){e=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(t,"top"));o=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(t,"left"));isNaN(e)||isNaN(o)||(i-=o,r-=e);break}else f=="relative"&&(s=$common.getLocation(t),i-=s.x,r-=s.y);t=t.parentNode}var u=Sys.Extended.UI.HtmlEditor.getClientViewportElement(this._iframe),l=u.clientWidth+u.scrollLeft,a=u.clientHeight+u.scrollTop;r<u.scrollTop&&(r=u.scrollTop);i<u.scrollLeft&&(i=u.scrollLeft);r+this._iframe.offsetHeight>a&&(r-=r+this._iframe.offsetHeight-a);i+this._iframe.offsetWidth>l&&(i-=i+this._iframe.offsetWidth-l);Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"open",[n,r,i])}},close:function(n){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"close",[n])},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"dispose")}};Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup",Sys.Extended.UI.HtmlEditor.Popups.Popup);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup=function(t){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.initializeBase(this,[t]),this._contentDiv=null},Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.prototype={get_contentDiv:function(){return this._contentDiv},set_contentDiv:function(t){this._contentDiv=t},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.callBaseMethod(this,"initialize"),this.set_initialContent(this._contentDiv.innerHTML)},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.callBaseMethod(this,"dispose")}},Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup=function(n){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.initializeBase(this,[n]);this._contentDiv=null};Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.prototype={get_contentDiv:function(){return this._contentDiv},set_contentDiv:function(n){this._contentDiv=n},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.callBaseMethod(this,"initialize");this.set_initialContent(this._contentDiv.innerHTML)},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.callBaseMethod(this,"dispose")}};Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup=function(o){Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.prototype={},Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup=function(n){Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.prototype={};Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.BaseColorsPopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.LinkProperties=function(t){Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.initializeBase(this,[t]),this._defaultTarget="_self",this._targetTextHolder=null,this._urlTextHolder=null},Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.prototype={get_defaultTarget:function(){return this._defaultTarget},set_defaultTarget:function(t){this._defaultTarget=t}},Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.registerClass("Sys.Extended.UI.HtmlEditor.Popups.LinkProperties",Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.LinkProperties=function(n){Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.initializeBase(this,[n]);this._defaultTarget="_self";this._targetTextHolder=null;this._urlTextHolder=null};Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.prototype={get_defaultTarget:function(){return this._defaultTarget},set_defaultTarget:function(n){this._defaultTarget=n}};Sys.Extended.UI.HtmlEditor.Popups.LinkProperties.registerClass("Sys.Extended.UI.HtmlEditor.Popups.LinkProperties",Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup=function(e){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.initializeBase(this,[e])},Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.callBaseMethod(this,"dispose")}},Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup=function(n){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.callBaseMethod(this,"dispose")}};Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.OkCancelAttachedTemplatePopup",Sys.Extended.UI.HtmlEditor.Popups.AttachedTemplatePopup);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton=function(t){Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.prototype={},Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton",Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton=function(n){Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.prototype={};Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupBGIButton",Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton=function(t){Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.initializeBase(this,[t]),this._designPanel=null},Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.prototype={},Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton",Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton=function(n){Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.initializeBase(this,[n]);this._designPanel=null};Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.prototype={};Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupBoxButton",Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton=function(e){Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.initializeBase(this,[e]),this._loaded=!1,this._activated=null,this._app_onload$delegate=Function.createDelegate(this,this._app_onload),this._cssClass="",this._name="",this._onmouseover$delegate=Function.createDelegate(this,this._onmouseover),this._onmouseout$delegate=Function.createDelegate(this,this._onmouseout),this._onmousedown$delegate=Function.createDelegate(this,this._onmousedown),this._onmouseup$delegate=Function.createDelegate(this,this._onmouseup),this._onclick$delegate=Function.createDelegate(this,this._onclick)},Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.prototype={isImage:function(){return!0},set_toolTip:function(e){this.get_element().title=e},get_toolTip:function(){return this.get_element().title},set_name:function(e){this._name=e},get_name:function(){return this._name},initialize:function(){function e(t){if(1==t.nodeType&&t.tagName){var o=t.tagName.toUpperCase();"INPUT"!=o&&"TEXTAREA"!=o&&"IFRAME"!=o&&(t.unselectable="on");for(var s=0;s<t.childNodes.length;s++)e(t.childNodes.item(s))}}var t=this.get_element();if(Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.callBaseMethod(this,"initialize"),Sys.Application.add_load(this._app_onload$delegate),this._cssClass=t.className.split(" ")[0],this.isImage()&&$addHandlers(t,{mouseover:this._onmouseover$delegate,mouseout:this._onmouseout$delegate,mousedown:this._onmousedown$delegate,mouseup:this._onmouseup$delegate,click:this._onclick$delegate}),Sys.Extended.UI.HtmlEditor.isIE)e(t);else try{t.style.MozUserSelect="none",t.parentNode.style.MozUserSelect="none"}catch(e){}},activate:function(e){this._activated=e,this.isImage()&&(Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseover",this._onmouseover$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseout",this._onmouseout$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mousedown",this._onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseup",this._onmouseup$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"click",this._onclick$delegate))},dispose:function(){this.isImage()&&null!=this._activated&&(Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseover",this._onmouseover$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseout",this._onmouseout$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mousedown",this._onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseup",this._onmouseup$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"click",this._onclick$delegate)),this._activated=null,this._loaded=!1,Sys.Application.remove_load(this._app_onload$delegate),Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.callBaseMethod(this,"dispose")},_app_onload:function(e,t){this._loaded||(this.onButtonLoaded(),this._loaded=!0)},onButtonLoaded:function(){},_onmouseover:function(e){return!!this.isEnable()&&(Sys.UI.DomElement.addCssClass(this._activated,this._cssClass+"_hover"),!0)},_onmouseout:function(e){if(!this.isEnable())return!1;var t=e.toElement||e.relatedTarget;try{for(;t&&"undefined"!=typeof t&&t!=this._activated;)t=t.parentNode}catch(e){t=null}return null!=t||(Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_hover"),Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_mousedown"),!0)},_onmousedown:function(e){return this.isEnable()?(Sys.UI.DomElement.addCssClass(this._activated,this._cssClass+"_mousedown"),!1):null},_onmouseup:function(e){return!!this.isEnable()&&(Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_mousedown"),!0)},_onclick:function(e){return!!this.isEnable()&&(this.callMethod(e),!0)},callMethod:function(e){var t=this._activated.ownerDocument||this._activated.document||target,o=t.defaultView||t.parentWindow,s=o.popupMediator.get_callMethodByName(this._name);Function.createDelegate(this,s)(o)},isEnable:function(){return!!this._loaded}},Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton",Sys.UI.Control);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton=function(n){Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.initializeBase(this,[n]);this._loaded=!1;this._activated=null;this._app_onload$delegate=Function.createDelegate(this,this._app_onload);this._cssClass="";this._name="";this._onmouseover$delegate=Function.createDelegate(this,this._onmouseover);this._onmouseout$delegate=Function.createDelegate(this,this._onmouseout);this._onmousedown$delegate=Function.createDelegate(this,this._onmousedown);this._onmouseup$delegate=Function.createDelegate(this,this._onmouseup);this._onclick$delegate=Function.createDelegate(this,this._onclick)};Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.prototype={isImage:function(){return!0},set_toolTip:function(n){this.get_element().title=n},get_toolTip:function(){return this.get_element().title},set_name:function(n){this._name=n},get_name:function(){return this._name},initialize:function(){var n=this.get_element();if(Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.callBaseMethod(this,"initialize"),Sys.Application.add_load(this._app_onload$delegate),this._cssClass=n.className.split(" ")[0],this.isImage()&&$addHandlers(n,{mouseover:this._onmouseover$delegate,mouseout:this._onmouseout$delegate,mousedown:this._onmousedown$delegate,mouseup:this._onmouseup$delegate,click:this._onclick$delegate}),Sys.Extended.UI.HtmlEditor.isIE){function t(n){var i,r;if(n.nodeType==1&&n.tagName)for(i=n.tagName.toUpperCase(),i!="INPUT"&&i!="TEXTAREA"&&i!="IFRAME"&&(n.unselectable="on"),r=0;r<n.childNodes.length;r++)t(n.childNodes.item(r))}t(n)}else try{n.style.MozUserSelect="none";n.parentNode.style.MozUserSelect="none"}catch(i){}},activate:function(n){this._activated=n;this.isImage()&&(Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseover",this._onmouseover$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseout",this._onmouseout$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mousedown",this._onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"mouseup",this._onmouseup$delegate),Sys.Extended.UI.HtmlEditor._addEvent(this._activated,"click",this._onclick$delegate))},dispose:function(){this.isImage()&&this._activated!=null&&(Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseover",this._onmouseover$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseout",this._onmouseout$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mousedown",this._onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"mouseup",this._onmouseup$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(this._activated,"click",this._onclick$delegate));this._activated=null;this._loaded=!1;Sys.Application.remove_load(this._app_onload$delegate);Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.callBaseMethod(this,"dispose")},_app_onload:function(){this._loaded||(this.onButtonLoaded(),this._loaded=!0)},onButtonLoaded:function(){},_onmouseover:function(){return this.isEnable()?(Sys.UI.DomElement.addCssClass(this._activated,this._cssClass+"_hover"),!0):!1},_onmouseout:function(n){if(!this.isEnable())return!1;var t=n.toElement||n.relatedTarget;try{while(t&&typeof t!="undefined")if(t==this._activated)break;else t=t.parentNode}catch(n){t=null}return t!=null?!0:(Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_hover"),Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_mousedown"),!0)},_onmousedown:function(){return this.isEnable()?(Sys.UI.DomElement.addCssClass(this._activated,this._cssClass+"_mousedown"),!1):null},_onmouseup:function(){return this.isEnable()?(Sys.UI.DomElement.removeCssClass(this._activated,this._cssClass+"_mousedown"),!0):!1},_onclick:function(n){return this.isEnable()?(this.callMethod(n),!0):!1},callMethod:function(){var n=this._activated.ownerDocument||this._activated.document||target,t=n.defaultView||n.parentWindow,i=t.popupMediator.get_callMethodByName(this._name);Function.createDelegate(this,i)(t)},isEnable:function(){return this._loaded?!0:!1}};Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton.registerClass("Sys.Extended.UI.HtmlEditor.Popups.PopupCommonButton",Sys.UI.Control);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.PreviewPanel=function(t){Sys.Extended.UI.HtmlEditor.PreviewPanel.initializeBase(this,[t]),this._focus$delegate=Function.createDelegate(this,this._focus_event),this._blur$delegate=Function.createDelegate(this,this._blur_event),this._doc=null,this._content="",this._panel_timer=null},Sys.Extended.UI.HtmlEditor.PreviewPanel.prototype={_focus:function(){try{this.get_element().contentWindow.focus()}catch(t){}this._focused()},_focus_event:function(){if(null==this._panel_timer){var t=this.get_element().contentWindow,e=this;this._really_focused(),this._panel_timer=setTimeout(function(){t.focus(),e._really_focused(),e._panel_timer=null},0)}return!0},_blur_event:function(){return null!=this._panel_timer&&(clearTimeout(this._panel_timer),this._panel_timer=null),!0},_activate:function(t){Sys.Extended.UI.HtmlEditor.PreviewPanel.callBaseMethod(this,"_activate"),this._content=t,this._wasFocused=!1,this._initIframe(t),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["focus"],this._focus$delegate),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),this._activateFinished()},_deactivate:function(){if(Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["focus"],this._focus$delegate),Sys.Extended.UI.HtmlEditor.isIE)try{this._doc.open(),this._doc.write(""),this._doc.close(),this.get_element().src="javascript:false;"}catch(t){}this._doc=null,this._content="",Sys.Extended.UI.HtmlEditor.PreviewPanel.callBaseMethod(this,"_deactivate")},_initIframe:function(t){var e=Sys.Extended.UI.HtmlEditor.Trim(t);this._doc=this.get_element().contentWindow.document,Sys.Extended.UI.HtmlEditor.isIE&&(e=e.replace(/&/gi,"&")),this._doc.open(),this._doc.write('<html><head><link rel="stylesheet" href="'+this._editPanel.get_documentCssPath()+'" media="all" /></head><body>'+e+"</body></html>"),this._doc.close()},_getContent:function(){return this._content},_setContent:function(t){this._content=t,this._initIframe(t)}},Sys.Extended.UI.HtmlEditor.PreviewPanel.registerClass("Sys.Extended.UI.HtmlEditor.PreviewPanel",Sys.Extended.UI.HtmlEditor.ModePanel);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.PreviewPanel=function(n){Sys.Extended.UI.HtmlEditor.PreviewPanel.initializeBase(this,[n]);this._focus$delegate=Function.createDelegate(this,this._focus_event);this._blur$delegate=Function.createDelegate(this,this._blur_event);this._doc=null;this._content="";this._panel_timer=null};Sys.Extended.UI.HtmlEditor.PreviewPanel.prototype={_focus:function(){try{this.get_element().contentWindow.focus()}catch(n){}this._focused()},_focus_event:function(){if(this._panel_timer==null){var t=this.get_element().contentWindow,n=this;this._really_focused();this._panel_timer=setTimeout(function(){t.focus();n._really_focused();n._panel_timer=null},0)}return!0},_blur_event:function(){return this._panel_timer!=null&&(clearTimeout(this._panel_timer),this._panel_timer=null),!0},_activate:function(n){Sys.Extended.UI.HtmlEditor.PreviewPanel.callBaseMethod(this,"_activate");this._content=n;this._wasFocused=!1;this._initIframe(n);Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["focus"],this._focus$delegate);Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["blur"],this._blur$delegate);this._activateFinished()},_deactivate:function(){if(Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["focus"],this._focus$delegate),Sys.Extended.UI.HtmlEditor.isIE)try{this._doc.open();this._doc.write("");this._doc.close();this.get_element().src="javascript:false;"}catch(n){}this._doc=null;this._content="";Sys.Extended.UI.HtmlEditor.PreviewPanel.callBaseMethod(this,"_deactivate")},_initIframe:function(n){var t=Sys.Extended.UI.HtmlEditor.Trim(n);this._doc=this.get_element().contentWindow.document;Sys.Extended.UI.HtmlEditor.isIE&&(t=t.replace(/&/ig,"&"));this._doc.open();this._doc.write('<html><head><link rel="stylesheet" href="'+this._editPanel.get_documentCssPath()+'" media="all" /><\/head><body>'+t+"<\/body><\/html>");this._doc.close()},_getContent:function(){return this._content},_setContent:function(n){this._content=n;this._initIframe(n)}};Sys.Extended.UI.HtmlEditor.PreviewPanel.registerClass("Sys.Extended.UI.HtmlEditor.PreviewPanel",Sys.Extended.UI.HtmlEditor.ModePanel);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Sys.Extended.UI.HtmlEditor.Toolbar=function(t){Sys.Extended.UI.HtmlEditor.Toolbar.initializeBase(this,[t]),this._loaded=!1,this._cachedButtonIds=null,this._cachedEditPanel=null,this._buttons=null,this._alwaysVisible=!1,this._app_onload$delegate=Function.createDelegate(this,this._app_onload)},Sys.Extended.UI.HtmlEditor.Toolbar.prototype={get_alwaysVisible:function(){return this._alwaysVisible},set_alwaysVisible:function(t){this._alwaysVisible=t,this.get_isInitialized()&&this.raisePropertyChanged("alwaysVisible")},set_activeEditPanel:function(t){if(!this._loaded)return void(this._cachedEditPanel=t);for(var i=0;i<this.get_buttons().length;i++)this.get_buttons()[i].set_activeEditPanel(t)},disable:function(){if(this.get_isInitialized()){if(this._alwaysVisible)return;for(var t=0;t<this.get_buttons().length;t++)this.get_buttons()[t].set_activeEditPanel(null)}},get_buttons:function(){return null==this._buttons&&(this._buttons=[]),this._buttons},set_buttons:function(t){this.get_buttons().push(t)},get_buttonIds:function(){},set_buttonIds:function(t){if(!this.get_isInitialized())return void(this._cachedButtonIds=t);for(var i=t.split(";"),e=0;e<i.length;e++)i[e].length>0&&this.set_buttons($find(i[e]))},initialize:function(){Sys.Extended.UI.HtmlEditor.Toolbar.callBaseMethod(this,"initialize"),Sys.Application.add_load(this._app_onload$delegate)},dispose:function(){this._loaded=!1,Sys.Application.remove_load(this._app_onload$delegate),Sys.Extended.UI.HtmlEditor.Toolbar.callBaseMethod(this,"dispose")},_app_onload:function(t,i){null!=this._cachedButtonIds&&(this.set_buttonIds(this._cachedButtonIds),this._cachedButtonIds=null),this._loaded=!0,null!=this._cachedEditPanel&&(this.set_activeEditPanel(this._cachedEditPanel),this._cachedEditPanel=null)}},Sys.Extended.UI.HtmlEditor.Toolbar.registerClass("Sys.Extended.UI.HtmlEditor.Toolbar",Sys.UI.Control);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.Toolbar=function(n){Sys.Extended.UI.HtmlEditor.Toolbar.initializeBase(this,[n]);this._loaded=!1;this._cachedButtonIds=null;this._cachedEditPanel=null;this._buttons=null;this._alwaysVisible=!1;this._app_onload$delegate=Function.createDelegate(this,this._app_onload)};Sys.Extended.UI.HtmlEditor.Toolbar.prototype={get_alwaysVisible:function(){return this._alwaysVisible},set_alwaysVisible:function(n){this._alwaysVisible=n;this.get_isInitialized()&&this.raisePropertyChanged("alwaysVisible")},set_activeEditPanel:function(n){if(!this._loaded){this._cachedEditPanel=n;return}for(var t=0;t<this.get_buttons().length;t++)this.get_buttons()[t].set_activeEditPanel(n)},disable:function(){if(this.get_isInitialized()){if(this._alwaysVisible)return;for(var n=0;n<this.get_buttons().length;n++)this.get_buttons()[n].set_activeEditPanel(null)}},get_buttons:function(){return this._buttons==null&&(this._buttons=[]),this._buttons},set_buttons:function(n){this.get_buttons().push(n)},get_buttonIds:function(){},set_buttonIds:function(n){var i,t;if(!this.get_isInitialized()){this._cachedButtonIds=n;return}for(i=n.split(";"),t=0;t<i.length;t++)i[t].length>0&&this.set_buttons($find(i[t]))},initialize:function(){Sys.Extended.UI.HtmlEditor.Toolbar.callBaseMethod(this,"initialize");Sys.Application.add_load(this._app_onload$delegate)},dispose:function(){this._loaded=!1;Sys.Application.remove_load(this._app_onload$delegate);Sys.Extended.UI.HtmlEditor.Toolbar.callBaseMethod(this,"dispose")},_app_onload:function(){this._cachedButtonIds!=null&&(this.set_buttonIds(this._cachedButtonIds),this._cachedButtonIds=null);this._loaded=!0;this._cachedEditPanel!=null&&(this.set_activeEditPanel(this._cachedEditPanel),this._cachedEditPanel=null)}};Sys.Extended.UI.HtmlEditor.Toolbar.registerClass("Sys.Extended.UI.HtmlEditor.Toolbar",Sys.UI.Control);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("backcolor",!1,"")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("backcolor",!1,"")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorClear",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.callBaseMethod(this,"callMethod"))return!1},setColor:function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.callBaseMethod(this,"setColor",[o]),this._designPanel._execCommand("backcolor",!1,o)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.callBaseMethod(this,"callMethod"))return!1},setColor:function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.callBaseMethod(this,"setColor",[n]);this._designPanel._execCommand("backcolor",!1,n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BackColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("bold",!1,null)},checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.callBaseMethod(this,"checkState")&&this._designPanel._queryCommandState("bold")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("bold",!1,null)},checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.callBaseMethod(this,"checkState")?this._designPanel._queryCommandState("bold"):!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Bold",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.callBaseMethod(this,"initialize")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.CommonButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.callBaseMethod(this,"initialize")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.CommonButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("InsertUnorderedList")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("InsertUnorderedList")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.BulletedList",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.callBaseMethod(this,"callMethod")&&(this.openPopup(Function.createDelegate(this,this._onopened)),!0)},_onopened:function(t){t.setColor=Function.createDelegate(this,this.setColor)},setColor:function(t){this.closePopup()}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.prototype={callMethod:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.callBaseMethod(this,"callMethod")?(this.openPopup(Function.createDelegate(this,this._onopened)),!0):!1},_onopened:function(n){n.setColor=Function.createDelegate(this,this.setColor)},setColor:function(){this.closePopup()}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.initializeBase(this,[t]),this._fixedColorButton=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.prototype={get_fixedColorButton:function(){return this._fixedColorButton},set_fixedColorButton:function(t){this._fixedColorButton=t},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.callBaseMethod(this,"callMethod")&&(this.openPopup(Function.createDelegate(this,this._onopened)),!0)},_onopened:function(t){t.setColor=Function.createDelegate(this,this.setColor)},setColor:function(t){this.closePopup(),null!=this._fixedColorButton&&this._fixedColorButton.set_defaultColor(t)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.Selector);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.initializeBase(this,[n]);this._fixedColorButton=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.prototype={get_fixedColorButton:function(){return this._fixedColorButton},set_fixedColorButton:function(n){this._fixedColorButton=n},callMethod:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.callBaseMethod(this,"callMethod")?(this.openPopup(Function.createDelegate(this,this._onopened)),!0):!1},_onopened:function(n){n.setColor=Function.createDelegate(this,this.setColor)},setColor:function(n){this.closePopup();this._fixedColorButton!=null&&this._fixedColorButton.set_defaultColor(n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.Selector);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(t.openWait(),setTimeout(function(){t.isShadowed(),t._copyCut("c",!0),t.closeWait(),t._ifShadow()},0)):t._copyCut("c",!0)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.callBaseMethod(this,"callMethod"))return!1;var n=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(n.openWait(),setTimeout(function(){n.isShadowed();n._copyCut("c",!0);n.closeWait();n._ifShadow()},0)):n._copyCut("c",!0)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Copy",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(t.openWait(),setTimeout(function(){t.isShadowed(),t._copyCut("x",!0),t.closeWait()},0)):t._copyCut("x",!0)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.callBaseMethod(this,"callMethod"))return!1;var n=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(n.openWait(),setTimeout(function(){n.isShadowed();n._copyCut("x",!0);n.closeWait()},0)):n._copyCut("x",!0)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Cut",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("Outdent")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("Outdent")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DecreaseIndent",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.prototype={},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.prototype={};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.initializeBase(this,[t]),this._designPanel=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.prototype={_onmousedown:function(t){return null!=this._designPanel&&(!this._designPanel.isPopup()&&(null!==Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.callBaseMethod(this,"_onmousedown",[t])&&(this.callMethod(),!1)))},onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel()},callMethod:function(){return null!=this._designPanel&&!this._designPanel.isPopup()}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.initializeBase(this,[n]);this._designPanel=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.prototype={_onmousedown:function(n){return this._designPanel==null?!1:this._designPanel.isPopup()?!1:Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.callBaseMethod(this,"_onmousedown",[n])===null?!1:(this.callMethod(),!1)},onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel()},callMethod:function(){return this._designPanel==null?!1:this._designPanel.isPopup()?!1:!0}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.BoxButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.initializeBase(this,[t]),this._designPanel=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.prototype={_onmousedown:function(t){return null!=this._designPanel&&(!this._designPanel.isPopup()&&(null!==Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.callBaseMethod(this,"_onmousedown",[t])&&(this.callMethod(),!1)))},onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel()},callMethod:function(){return null!=this._designPanel&&!this._designPanel.isPopup()}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.initializeBase(this,[n]);this._designPanel=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.prototype={_onmousedown:function(n){return this._designPanel==null?!1:this._designPanel.isPopup()?!1:Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.callBaseMethod(this,"_onmousedown",[n])===null?!1:(this.callMethod(),!1)},onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel()},callMethod:function(){return this._designPanel==null?!1:this._designPanel.isPopup()?!1:!0}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton=function(e){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.initializeBase(this,[e]),this._relatedPopup=null,this._autoClose=!0,this._forclose_onmousedown$delegate=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.prototype={set_activeEditPanel:function(e){this._editPanel!=e&&null!=this._editPanel&&this.closePopup(),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"set_activeEditPanel",[e])},get_autoClose:function(){return this._autoClose},set_autoClose:function(e){this._autoClose=e},get_relatedPopup:function(){return this._relatedPopup},set_relatedPopup:function(e){this._relatedPopup=e},openPopup:function(e,t,o){if((!this._autoClose||null==this._forclose_onmousedown$delegate)&&null!=this._relatedPopup){if(this._bookmark=null,Sys.Extended.UI.HtmlEditor.isIE){var n=this._designPanel._getSelection();this._selType=n.type.toLowerCase();var d=this._designPanel._createRange(n);if("text"==this._selType||"none"==this._selType)try{this._bookmark=d.duplicate()}catch(e){}else"control"==this._selType&&(this._bookmark=d.item(0),d.remove(0),n.empty())}if("function"==typeof this._relatedPopup.set_relatedElement){if(this._relatedPopup.set_relatedElement(this.get_element()),this._forclose_onmousedown$delegate=Function.createDelegate(this,this._forclose_onmousedown),this._autoClose){var s=this._designPanel.get_element().contentWindow,l=s.document.body,i=this;setTimeout(function(){null!=i._forclose_onmousedown$delegate&&(Sys.Extended.UI.HtmlEditor._addEvent(l,"mousedown",i._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(l,"keydown",i._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(document.body,"keydown",i._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(window,"keydown",i._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(s,"mousedown",i._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(document.body,"mousedown",i._forclose_onmousedown$delegate),document.documentElement&&Sys.Extended.UI.HtmlEditor._addEvent(document.documentElement,"mousedown",i._forclose_onmousedown$delegate))},0)}this._relatedPopup.open(e)}else this._relatedPopup.open(e,t,o)}},_forclose_onmousedown:function(e){if(null==this._forclose_onmousedown$delegate)return!0;if(!this._relatedPopup.isOpened)return!0;if(this._relatedPopup.close(),this._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{if(this._bookmark){if(Sys.Extended.UI.HtmlEditor.isIE){var t;"control"==this._selType?(t=this._designPanel._doc.body.createControlRange(),t.add(this._bookmark)):t=this._bookmark,t.select()}this._bookmark=null}if(!Sys.Extended.UI.HtmlEditor.isIE){var o=this._designPanel._getSelection(),t=this._designPanel._createRange(o);this._designPanel._removeAllRanges(o),this._designPanel._selectRange(o,t),this._designPanel.focusEditor()}}catch(e){}var n=this;if(setTimeout(function(){if(n._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{n._editPanel.updateToolbar()}catch(e){}},0),this._autoClose)try{var d=this._designPanel.get_element().contentWindow,s=d.document.body;document.documentElement&&Sys.Extended.UI.HtmlEditor._removeEvent(document.documentElement,"mousedown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(s,"keydown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(document.body,"keydown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(window,"keydown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(s,"mousedown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(d,"mousedown",this._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._removeEvent(document.body,"mousedown",this._forclose_onmousedown$delegate)}catch(e){}return this._forclose_onmousedown$delegate=null,!e||!e.type||"keydown"!=e.type||(Sys.Extended.UI.HtmlEditor._stopEvent(e),!1)},closePopup:function(){null!=this._forclose_onmousedown$delegate&&this._forclose_onmousedown$delegate(null)},dispose:function(){null!=this._forclose_onmousedown$delegate&&this._forclose_onmousedown$delegate(null),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"dispose")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.initializeBase(this,[n]);this._relatedPopup=null;this._autoClose=!0;this._forclose_onmousedown$delegate=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.prototype={set_activeEditPanel:function(n){this._editPanel!=n&&this._editPanel!=null&&this.closePopup();Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"set_activeEditPanel",[n])},get_autoClose:function(){return this._autoClose},set_autoClose:function(n){this._autoClose=n},get_relatedPopup:function(){return this._relatedPopup},set_relatedPopup:function(n){this._relatedPopup=n},openPopup:function(n,t,i){var u,f;if((!this._autoClose||this._forclose_onmousedown$delegate==null)&&this._relatedPopup!=null){if(this._bookmark=null,Sys.Extended.UI.HtmlEditor.isIE)if(u=this._designPanel._getSelection(),this._selType=u.type.toLowerCase(),f=this._designPanel._createRange(u),this._selType=="text"||this._selType=="none")try{this._bookmark=f.duplicate()}catch(s){}else this._selType=="control"&&(this._bookmark=f.item(0),f.remove(0),u.empty());if(typeof this._relatedPopup.set_relatedElement=="function"){if(this._relatedPopup.set_relatedElement(this.get_element()),this._forclose_onmousedown$delegate=Function.createDelegate(this,this._forclose_onmousedown),this._autoClose){var e=this._designPanel.get_element().contentWindow,o=e.document.body,r=this;setTimeout(function(){r._forclose_onmousedown$delegate!=null&&(Sys.Extended.UI.HtmlEditor._addEvent(o,"mousedown",r._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(o,"keydown",r._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(document.body,"keydown",r._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(window,"keydown",r._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(e,"mousedown",r._forclose_onmousedown$delegate),Sys.Extended.UI.HtmlEditor._addEvent(document.body,"mousedown",r._forclose_onmousedown$delegate),document.documentElement&&Sys.Extended.UI.HtmlEditor._addEvent(document.documentElement,"mousedown",r._forclose_onmousedown$delegate))},0)}this._relatedPopup.open(n)}else this._relatedPopup.open(n,t,i)}},_forclose_onmousedown:function(n){var i,t,r,u,f;if(this._forclose_onmousedown$delegate==null)return!0;if(this._relatedPopup.isOpened)this._relatedPopup.close();else return!0;if(this._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{this._bookmark&&(Sys.Extended.UI.HtmlEditor.isIE&&(this._selType=="control"?(t=this._designPanel._doc.body.createControlRange(),t.add(this._bookmark)):t=this._bookmark,t.select()),this._bookmark=null);Sys.Extended.UI.HtmlEditor.isIE||(i=this._designPanel._getSelection(),t=this._designPanel._createRange(i),this._designPanel._removeAllRanges(i),this._designPanel._selectRange(i,t),this._designPanel.focusEditor())}catch(e){}if(r=this,setTimeout(function(){if(r._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{r._editPanel.updateToolbar()}catch(n){}},0),this._autoClose)try{u=this._designPanel.get_element().contentWindow;f=u.document.body;document.documentElement&&Sys.Extended.UI.HtmlEditor._removeEvent(document.documentElement,"mousedown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(f,"keydown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(document.body,"keydown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(window,"keydown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(f,"mousedown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(u,"mousedown",this._forclose_onmousedown$delegate);Sys.Extended.UI.HtmlEditor._removeEvent(document.body,"mousedown",this._forclose_onmousedown$delegate)}catch(e){}return(this._forclose_onmousedown$delegate=null,n&&n.type&&n.type=="keydown")?(Sys.Extended.UI.HtmlEditor._stopEvent(n),!1):!0},closePopup:function(){this._forclose_onmousedown$delegate!=null&&this._forclose_onmousedown$delegate(null)},dispose:function(){this._forclose_onmousedown$delegate!=null&&this._forclose_onmousedown$delegate(null);Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"dispose")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.initializeBase(this,[t]),this._designPanel=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.prototype={onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel(),this.checkState()},checkState:function(){return!!this.checkRangeInDesign()},callMethod:function(t,e){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.callBaseMethod(this,"callMethod")&&(null!=this._designPanel&&!this._designPanel.isPopup())}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.SelectButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.initializeBase(this,[n]);this._designPanel=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.prototype={onEditPanelActivity:function(){this._designPanel=this._editPanel.get_activePanel();this.checkState()},checkState:function(){return this.checkRangeInDesign()?!0:!1},callMethod:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.callBaseMethod(this,"callMethod")?this._designPanel==null?!1:this._designPanel.isPopup()?!1:!0:!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.SelectButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.prototype={onEditPanelActivity:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.callBaseMethod(this,"onEditPanelActivity"),this.setActivity(this.checkState())},checkState:function(){return!!this.checkRangeInDesign()}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.prototype={onEditPanelActivity:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.callBaseMethod(this,"onEditPanelActivity");this.setActivity(this.checkState())},checkState:function(){return this.checkRangeInDesign()?!0:!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.prototype={setColor:function(o){this._designPanel._execCommand("backcolor",!1,o)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.prototype={setColor:function(n){this._designPanel._execCommand("backcolor",!1,n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedBackColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.initializeBase(this,[t]),this._defaultColor="#000000",this._colorDiv=null,this._methodButton=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.prototype={get_defaultColor:function(){return this._defaultColor},set_defaultColor:function(t){this._defaultColor=t,null!=this._colorDiv&&(this._colorDiv.get_element().style.backgroundColor=t)},get_colorDiv:function(){return this._colorDiv},set_colorDiv:function(t){this._colorDiv=t},get_methodButton:function(){return this._methodButton},set_methodButton:function(t){this._methodButton=t},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.callBaseMethod(this,"callMethod")&&void this.setColor(this.get_defaultColor())},setColor:function(t){},initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.callBaseMethod(this,"initialize"),null!=this._methodButton&&(this._methodButton.callMethod=Function.createDelegate(this,this.callMethod)),null!=this._colorDiv&&(this._colorDiv.callMethod=Function.createDelegate(this,this.callMethod))}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.initializeBase(this,[n]);this._defaultColor="#000000";this._colorDiv=null;this._methodButton=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.prototype={get_defaultColor:function(){return this._defaultColor},set_defaultColor:function(n){this._defaultColor=n;this._colorDiv!=null&&(this._colorDiv.get_element().style.backgroundColor=n)},get_colorDiv:function(){return this._colorDiv},set_colorDiv:function(n){this._colorDiv=n},get_methodButton:function(){return this._methodButton},set_methodButton:function(n){this._methodButton=n},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.callBaseMethod(this,"callMethod"))return!1;this.setColor(this.get_defaultColor())},setColor:function(){},initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.callBaseMethod(this,"initialize");this._methodButton!=null&&(this._methodButton.callMethod=Function.createDelegate(this,this.callMethod));this._colorDiv!=null&&(this._colorDiv.callMethod=Function.createDelegate(this,this.callMethod))}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeBoxButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.prototype={setColor:function(o){this._designPanel._execCommand("forecolor",!1,o)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.prototype={setColor:function(n){this._designPanel._execCommand("forecolor",!1,n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedForeColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.FixedColorButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"initialize")},callMethod:function(t,e){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"callMethod"))return!1;try{var o=this._designPanel;o._execCommand("fontname",!1,t.options.item(t.selectedIndex).value)}catch(t){}},checkState:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"checkState"))return!1;var t=this._designPanel,e=null;try{e=Function.createDelegate(t,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontname")}catch(t){}t._FontNotSet||e&&0!=e.length||(e=Sys.Extended.UI.HtmlEditor.getStyle(t._doc.body,"font-family"));var o=this._select,n=0;if(e&&e.length>0){var l=e.toLowerCase().split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");for(n=0;n<o.options.length;n++){var a=o.options.item(n).value.toLowerCase().split(",")[0];if(a==l)break}if(n==o.options.length)try{var d=document.createElement("OPTION");d.value=e.replace(/^(['"])/,"").replace(/(['"])$/,""),d.text=e.split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,""),o.add(d,Sys.Extended.UI.HtmlEditor.isIE?n:null),$addHandler(d,"click",this._onclick_option$delegate)}catch(t){n=0}}o.selectedIndex=n}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"initialize")},callMethod:function(n){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"callMethod"))return!1;try{var t=this._designPanel;t._execCommand("fontname",!1,n.options.item(n.selectedIndex).value)}catch(i){}},checkState:function(){var u,n,i,t,f,e,r;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.callBaseMethod(this,"checkState"))return!1;u=this._designPanel;n=null;try{n=Function.createDelegate(u,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontname")}catch(o){}if(u._FontNotSet||n&&n.length!=0||(n=Sys.Extended.UI.HtmlEditor.getStyle(u._doc.body,"font-family")),i=this._select,t=0,n&&n.length>0){for(f=n.toLowerCase().split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,""),t=0;t<i.options.length;t++)if(e=i.options.item(t).value.toLowerCase().split(",")[0],e==f)break;if(t==i.options.length)try{r=document.createElement("OPTION");r.value=n.replace(/^(['"])/,"").replace(/(['"])$/,"");r.text=n.split(",")[0].replace(/^(['"])/,"").replace(/(['"])$/,"");i.add(r,Sys.Extended.UI.HtmlEditor.isIE?t:null);$addHandler(r,"click",this._onclick_option$delegate)}catch(o){t=0}}i.selectedIndex=t}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontName",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"initialize")},callMethod:function(t,e){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"callMethod"))return!1;try{var o=this._designPanel;o._execCommand("FontSize",!1,Sys.Extended.UI.HtmlEditor.fontSizeSeek(t.options.item(t.selectedIndex).value))}catch(t){}},checkState:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"checkState"))return!1;var t=this._designPanel,e=null,o=this._select.id;try{e=Function.createDelegate(t,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontsize",o)}catch(t){}e&&(e=e.toString()),t._FontNotSet||e&&0!=e.length||(e=Sys.Extended.UI.HtmlEditor.getStyle(t._doc.body,"font-size"),e=Sys.Extended.UI.HtmlEditor._TryTransformFromPxToPt(e,this,o));try{var n=this._select,i=0;if(e&&e.length>0){var d=e.toLowerCase().split(",")[0];for(i=0;i<n.options.length;i++){var l=Sys.Extended.UI.HtmlEditor.fontSizeSeek(n.options.item(i).value.toLowerCase().split(",")[0]);if(l==d)break}if(i==n.options.length)try{var s=document.createElement("OPTION");s.value=e,s.text=e,n.add(s,Sys.Extended.UI.HtmlEditor.isIE?i:null),$addHandler(s,"click",this._onclick_option$delegate)}catch(t){i=0}}n.selectedIndex=i}catch(t){}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"initialize")},callMethod:function(n){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"callMethod"))return!1;try{var t=this._designPanel;t._execCommand("FontSize",!1,Sys.Extended.UI.HtmlEditor.fontSizeSeek(n.options.item(n.selectedIndex).value))}catch(i){}},checkState:function(){var i,t,e,o,r;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.callBaseMethod(this,"checkState"))return!1;var u=this._designPanel,n=null,f=this._select.id;try{n=Function.createDelegate(u,Sys.Extended.UI.HtmlEditor._queryCommandValue)("fontsize",f)}catch(s){}n&&(n=n.toString());u._FontNotSet||n&&n.length!=0||(n=Sys.Extended.UI.HtmlEditor.getStyle(u._doc.body,"font-size"),n=Sys.Extended.UI.HtmlEditor._TryTransformFromPxToPt(n,this,f));try{if(i=this._select,t=0,n&&n.length>0){for(e=n.toLowerCase().split(",")[0],t=0;t<i.options.length;t++)if(o=Sys.Extended.UI.HtmlEditor.fontSizeSeek(i.options.item(t).value.toLowerCase().split(",")[0]),o==e)break;if(t==i.options.length)try{r=document.createElement("OPTION");r.value=n;r.text=n;i.add(r,Sys.Extended.UI.HtmlEditor.isIE?t:null);$addHandler(r,"click",this._onclick_option$delegate)}catch(s){t=0}}i.selectedIndex=t}catch(s){}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.FontSize",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeSelectButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.callBaseMethod(this,"callMethod"))return!1},setColor:function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.callBaseMethod(this,"setColor",[o]),this._designPanel._execCommand("forecolor",!1,o)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.callBaseMethod(this,"callMethod"))return!1},setColor:function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.callBaseMethod(this,"setColor",[n]);this._designPanel._execCommand("forecolor",!1,n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColor",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("forecolor",!1,"")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("forecolor",!1,"")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorClear",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector=function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.initializeBase(this,[o])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.callBaseMethod(this,"callMethod"))return!1},setColor:function(o){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.callBaseMethod(this,"setColor",[o]),this._designPanel._execCommand("forecolor",!1,o)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.callBaseMethod(this,"callMethod"))return!1},setColor:function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.callBaseMethod(this,"setColor",[n]);this._designPanel._execCommand("forecolor",!1,n)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ForeColorSelector",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ColorSelector);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.prototype={isImage:function(){return!1}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.prototype={isImage:function(){return!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.HorizontalSeparator",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.prototype={},Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.prototype={};Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.HtmlMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.initializeBase(this,[t]),this._normalSrc="",this._hoverSrc="",this._downSrc="",this._activeSrc="",this._downTimer=null},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.prototype={get_normalSrc:function(){return this._normalSrc},set_normalSrc:function(t){this._normalSrc=t;var s=this.get_element();/none$/.test(s.src)&&(s.src=t)},get_hoverSrc:function(){return this._hoverSrc},set_hoverSrc:function(t){this._hoverSrc=t},get_downSrc:function(){return this._downSrc},set_downSrc:function(t){this._downSrc=t},get_activeSrc:function(){return this._activeSrc},set_activeSrc:function(t){this._activeSrc=t},isImage:function(){return!0},_onmouseover:function(t){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseover")&&(this._hoverSrc.length>0&&(this.get_element().src=this._hoverSrc),!0)},_onmouseout:function(t){var s=this.get_element();return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseout")&&(this._hoverSrc.length>0&&(Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_mousedown")&&this._downSrc.length>0?s.src=this._downSrc:Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_active")&&this._activeSrc.length>0?s.src=this._activeSrc:s.src=this._normalSrc),!0)},_onmousedown:function(t){return null===Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmousedown")?null:(this._downSrc.length>0&&(this.get_element().src=this._downSrc,this._downTimer=setTimeout(Function.createDelegate(this,this._onmouseup),1e3)),!0)},_onmouseup:function(t){var s=this.get_element();return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseup")&&(this._downSrc.length>0&&(Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_hover")&&this._hoverSrc.length>0?s.src=this._hoverSrc:Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_active")&&this._activeSrc.length>0?s.src=this._activeSrc:s.src=this._normalSrc,null!=this._downTimer&&(clearTimeout(this._downTimer),this._downTimer=null)),!0)},setActivity:function(t){var s=this.get_element();this._activeSrc.length>0&&(t?Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_active")||(s.src=this._activeSrc):Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_active")&&(Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_mousedown")&&this._downSrc.length>0?s.src=this._downSrc:Sys.UI.DomElement.containsCssClass(s,this._cssClass+"_hover")&&this._hoverSrc.length>0?s.src=this._hoverSrc:s.src=this._normalSrc)),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"setActivity",[t])}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.CommonButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.initializeBase(this,[n]);this._normalSrc="";this._hoverSrc="";this._downSrc="";this._activeSrc="";this._downTimer=null};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.prototype={get_normalSrc:function(){return this._normalSrc},set_normalSrc:function(n){this._normalSrc=n;var t=this.get_element();/none$/.test(t.src)&&(t.src=n)},get_hoverSrc:function(){return this._hoverSrc},set_hoverSrc:function(n){this._hoverSrc=n},get_downSrc:function(){return this._downSrc},set_downSrc:function(n){this._downSrc=n},get_activeSrc:function(){return this._activeSrc},set_activeSrc:function(n){this._activeSrc=n},isImage:function(){return!0},_onmouseover:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseover")?(this._hoverSrc.length>0&&(this.get_element().src=this._hoverSrc),!0):!1},_onmouseout:function(){var n=this.get_element();return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseout")?(this._hoverSrc.length>0&&(n.src=Sys.UI.DomElement.containsCssClass(n,this._cssClass+"_mousedown")&&this._downSrc.length>0?this._downSrc:Sys.UI.DomElement.containsCssClass(n,this._cssClass+"_active")&&this._activeSrc.length>0?this._activeSrc:this._normalSrc),!0):!1},_onmousedown:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmousedown")===null?null:(this._downSrc.length>0&&(this.get_element().src=this._downSrc,this._downTimer=setTimeout(Function.createDelegate(this,this._onmouseup),1e3)),!0)},_onmouseup:function(){var n=this.get_element();return Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"_onmouseup")?(this._downSrc.length>0&&(n.src=Sys.UI.DomElement.containsCssClass(n,this._cssClass+"_hover")&&this._hoverSrc.length>0?this._hoverSrc:Sys.UI.DomElement.containsCssClass(n,this._cssClass+"_active")&&this._activeSrc.length>0?this._activeSrc:this._normalSrc,this._downTimer!=null&&(clearTimeout(this._downTimer),this._downTimer=null)),!0):!1},setActivity:function(n){var t=this.get_element();this._activeSrc.length>0&&(n?Sys.UI.DomElement.containsCssClass(t,this._cssClass+"_active")||(t.src=this._activeSrc):Sys.UI.DomElement.containsCssClass(t,this._cssClass+"_active")&&(t.src=Sys.UI.DomElement.containsCssClass(t,this._cssClass+"_mousedown")&&this._downSrc.length>0?this._downSrc:Sys.UI.DomElement.containsCssClass(t,this._cssClass+"_hover")&&this._hoverSrc.length>0?this._hoverSrc:this._normalSrc));Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.callBaseMethod(this,"setActivity",[n])}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.CommonButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("Indent")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("Indent")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.IncreaseIndent",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;try{t._saveContent();var e=t._doc.createElement("div");e.innerHTML="<hr>";var o=e.firstChild,n=t._getSafePlace();if(!n)return;var r=n.parentNode;return r.insertBefore(o,n),r.removeChild(n),o=o.nextSibling?o.nextSibling:o,Sys.Extended.UI.HtmlEditor._setCursor(o,t),setTimeout(function(){t.onContentChanged(),t._editPanel.updateToolbar()},0),t.focusEditor(),!0}catch(t){}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.prototype={callMethod:function(){var n,r,t,i,u;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.callBaseMethod(this,"callMethod"))return!1;n=this._designPanel;try{return(n._saveContent(),r=n._doc.createElement("div"),r.innerHTML="<hr>",t=r.firstChild,i=n._getSafePlace(),!i)?void 0:(u=i.parentNode,u.insertBefore(t,i),u.removeChild(i),t=t.nextSibling?t.nextSibling:t,Sys.Extended.UI.HtmlEditor._setCursor(t,n),setTimeout(function(){n.onContentChanged();n._editPanel.updateToolbar()},0),n.focusEditor(),!0)}catch(f){}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.InsertHR",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("italic",!1,null)},checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.callBaseMethod(this,"checkState")&&this._designPanel._queryCommandState("italic")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("italic",!1,null)},checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.callBaseMethod(this,"checkState")?this._designPanel._queryCommandState("italic"):!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Italic",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.prototype={checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.callBaseMethod(this,"checkState")&&this._designPanel._textAlignState("center")},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("JustifyCenter")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.callBaseMethod(this,"checkState")?this._designPanel._textAlignState("center"):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("JustifyCenter")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyCenter",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.prototype={checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.callBaseMethod(this,"checkState")&&this._designPanel._textAlignState("justify")},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("JustifyFull")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.callBaseMethod(this,"checkState")?this._designPanel._textAlignState("justify"):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("JustifyFull")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyFull",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.prototype={checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.callBaseMethod(this,"checkState")&&this._designPanel._textAlignState("left")},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("JustifyLeft")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.callBaseMethod(this,"checkState")?this._designPanel._textAlignState("left"):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("JustifyLeft")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyLeft",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.prototype={checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.callBaseMethod(this,"checkState")&&this._designPanel._textAlignState("right")},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("JustifyRight")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.callBaseMethod(this,"checkState")?this._designPanel._textAlignState("right"):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("JustifyRight")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.JustifyRight",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"callMethod"))return!1;if(this._designPanel._doc.body.style.direction=this.checkState()?"rtl":"",!Sys.Extended.UI.HtmlEditor.isIE){var t=this._designPanel._getSelection(),e=this._designPanel._createRange(t);this._designPanel._removeAllRanges(t),this._designPanel._selectRange(t,e),this._designPanel.focusEditor()}var o=this;setTimeout(function(){o._editPanel.updateToolbar()},0)},checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"checkState")&&(!this._designPanel._doc.body.style.direction||"rtl"!=this._designPanel._doc.body.style.direction)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.prototype={callMethod:function(){var n,t,i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"callMethod"))return!1;this._designPanel._doc.body.style.direction=this.checkState()?"rtl":"";Sys.Extended.UI.HtmlEditor.isIE||(n=this._designPanel._getSelection(),t=this._designPanel._createRange(n),this._designPanel._removeAllRanges(n),this._designPanel._selectRange(n,t),this._designPanel.focusEditor());i=this;setTimeout(function(){i._editPanel.updateToolbar()},0)},checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.callBaseMethod(this,"checkState")?(this._designPanel._doc.body.style.direction&&this._designPanel._doc.body.style.direction=="rtl")?!1:!0:!1}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Ltr",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.prototype={},Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.prototype={};Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor"),Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.initializeBase(this,[t]),this._activeMode=Sys.Extended.UI.HtmlEditor.ActiveModeType.Design},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.prototype={get_activeMode:function(){return this._activeMode},set_activeMode:function(t){this._activeMode=t},_onclick:function(t){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.callBaseMethod(this,"_onclick"))return!1;var e=this;return setTimeout(function(){e._editPanel.set_activeMode(e._activeMode)},0),!0},onEditPanelActivity:function(){this.setActivity(this._editPanel.get_activeMode()==this._activeMode)}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.initializeBase(this,[n]);this._activeMode=Sys.Extended.UI.HtmlEditor.ActiveModeType.Design};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.prototype={get_activeMode:function(){return this._activeMode},set_activeMode:function(n){this._activeMode=n},_onclick:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.callBaseMethod(this,"_onclick"))return!1;var n=this;return setTimeout(function(){n._editPanel.set_activeMode(n._activeMode)},0),!0},onEditPanelActivity:function(){this.setActivity(this._editPanel.get_activeMode()==this._activeMode)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.prototype={set_activeEditPanel:function(t){if(this._editPanel!=t&&null!=this._editPanel){var e=this.get_relatedPopup();if("function"==typeof e._forceImClose){var o=e._forceImClose;o(e._iframe.contentWindow)}}Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"set_activeEditPanel",[t])},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.callBaseMethod(this,"callMethod")&&(this.openPopup(Function.createDelegate(this,this._onopened)),!0)},_onopened:function(t){t.popupMediator.set_callMethodByName("OK",Function.createDelegate(this,this._onOK)),t.popupMediator.set_callMethodByName("Cancel",Function.createDelegate(this,this._onCancel));var e=this.get_relatedPopup();e._popup=this._designPanel._popup,e._forceImClose=Function.createDelegate(this,this._onCancel),this._designPanel._popup=this.get_relatedPopup(),this.opened(t)},opened:function(t){},_onOK:function(t){this.okCheck(t)&&this._exit(Function.createDelegate(this,this.ok),t)},_onCancel:function(t){this.cancelCheck(t)&&this._exit(Function.createDelegate(this,this.cancel),t)},_exit:function(t,e){this.closePopup(),this._designPanel._popup=this.get_relatedPopup()._popup,this.get_relatedPopup()._popup=null,this.get_relatedPopup()._forceImClose=null,t(e)},ok:function(t){},cancel:function(t){},okCheck:function(t){return!0},cancelCheck:function(t){return!0}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.prototype={set_activeEditPanel:function(n){var t,i;this._editPanel!=n&&this._editPanel!=null&&(t=this.get_relatedPopup(),typeof t._forceImClose=="function"&&(i=t._forceImClose,i(t._iframe.contentWindow)));Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton.callBaseMethod(this,"set_activeEditPanel",[n])},callMethod:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.callBaseMethod(this,"callMethod")?(this.openPopup(Function.createDelegate(this,this._onopened)),!0):!1},_onopened:function(n){n.popupMediator.set_callMethodByName("OK",Function.createDelegate(this,this._onOK));n.popupMediator.set_callMethodByName("Cancel",Function.createDelegate(this,this._onCancel));var t=this.get_relatedPopup();t._popup=this._designPanel._popup;t._forceImClose=Function.createDelegate(this,this._onCancel);this._designPanel._popup=this.get_relatedPopup();this.opened(n)},opened:function(){},_onOK:function(n){this.okCheck(n)&&this._exit(Function.createDelegate(this,this.ok),n)},_onCancel:function(n){this.cancelCheck(n)&&this._exit(Function.createDelegate(this,this.cancel),n)},_exit:function(n,t){this.closePopup();this._designPanel._popup=this.get_relatedPopup()._popup;this.get_relatedPopup()._popup=null;this.get_relatedPopup()._forceImClose=null;n(t)},ok:function(){},cancel:function(){},okCheck:function(){return!0},cancelCheck:function(){return!0}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.OkCancelPopupButton",Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModePopupImageButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.prototype={callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("InsertOrderedList")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("InsertOrderedList")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.OrderedList",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.prototype={checkState:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.callBaseMethod(this,"checkState")&&this._designPanel._textAlignState("")},callMethod:function(){return!!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.callBaseMethod(this,"callMethod")&&void this._designPanel._execCommand("Paragraph")}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.prototype={checkState:function(){return Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.callBaseMethod(this,"checkState")?this._designPanel._textAlignState(""):!1},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.callBaseMethod(this,"callMethod"))return!1;this._designPanel._execCommand("Paragraph")}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paragraph",Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;if(Sys.Extended.UI.HtmlEditor.isIE)t._saveContent(),t.openWait(),setTimeout(function(){t._paste(!0),t.closeWait()},0);else{var e=t._getSelection(),o=t._createRange(e);t._removeAllRanges(e),alert(String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V")),t._selectRange(e,o),t.isWord=!1,t.isPlainText=!1}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.prototype={canBeShown:function(){return Sys.Extended.UI.HtmlEditor.isIE},callMethod:function(){var n,t,i;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.callBaseMethod(this,"callMethod"))return!1;n=this._designPanel;Sys.Extended.UI.HtmlEditor.isIE?(n._saveContent(),n.openWait(),setTimeout(function(){n._paste(!0);n.closeWait()},0)):(t=n._getSelection(),i=n._createRange(t),n._removeAllRanges(t),alert(String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V")),n._selectRange(t,i),n.isWord=!1,n.isPlainText=!1)}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.Paste",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;if(Sys.Extended.UI.HtmlEditor.isIE)t._saveContent(),t.openWait(),setTimeout(function(){t._paste(!1),t.closeWait()},0);else{var e=t._getSelection(),o=t._createRange(e),s=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V"),n=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_OnPastePlainText,s);alert(n),setTimeout(function(){t._removeAllRanges(e),t._selectRange(e,o)},0),t.isPlainText=!0}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.prototype={callMethod:function(){var n;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.callBaseMethod(this,"callMethod"))return!1;if(n=this._designPanel,Sys.Extended.UI.HtmlEditor.isIE)n._saveContent(),n.openWait(),setTimeout(function(){n._paste(!1);n.closeWait()},0);else{var t=n._getSelection(),i=n._createRange(t),r=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V"),u=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_OnPastePlainText,r);alert(u);setTimeout(function(){n._removeAllRanges(t);n._selectRange(t,i)},0);n.isPlainText=!0}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteText",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.prototype={callMethod:function(){if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.callBaseMethod(this,"callMethod"))return!1;var t=this._designPanel;if(Sys.Extended.UI.HtmlEditor.isIE)t._saveContent(),t.openWait(),setTimeout(function(){t._paste(!0,!0),t.closeWait()},0);else{var e=t._getSelection(),o=t._createRange(e),s=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V"),r=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_OnPasteFromMSWord,s);alert(r),setTimeout(function(){t._removeAllRanges(e),t._selectRange(e,o)},0),t.isWord=!0}}},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.prototype={callMethod:function(){var n;if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.callBaseMethod(this,"callMethod"))return!1;if(n=this._designPanel,Sys.Extended.UI.HtmlEditor.isIE)n._saveContent(),n.openWait(),setTimeout(function(){n._paste(!0,!0);n.closeWait()},0);else{var t=n._getSelection(),i=n._createRange(t),r=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-V":"Ctrl-V"),u=String.format(Sys.Extended.UI.Resources.HtmlEditor_toolbar_button_OnPasteFromMSWord,r);alert(u);setTimeout(function(){n._removeAllRanges(t);n._selectRange(t,i)},0);n.isWord=!0}}};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PasteWord",Sys.Extended.UI.HtmlEditor.ToolbarButtons.MethodButton);
|
||||
@@ -1 +1 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons"),Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode=function(t){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.initializeBase(this,[t])},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.prototype={},Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode=function(n){Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.initializeBase(this,[n])};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.prototype={};Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.PreviewMode",Sys.Extended.UI.HtmlEditor.ToolbarButtons.ModeButton);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user