Changeset 1369 for trunk


Ignore:
Timestamp:
02/05/18 10:56:25 (16 months ago)
Author:
gogo
Message:

Remove WebKitResize? handles when changing modes

Location:
trunk/plugins/WebKitResize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/WebKitResize/WebKitResize.js

    r1364 r1369  
    1111  first if you need a newer one (then this might break, but oh well). 
    1212   
    13   == Usage == 
     13  == Usage ==._ 
    1414  Instruct Xinha to load the WebKitImageResuze plugin (follow the NewbieGuide), 
    1515  you can load this plugin even in non WebKit browsers, it will do  
     
    7474  } 
    7575} 
     76 
     77// When changing modes, make sure that we stop displaying the handles 
     78// if they were displaying, otherwise they create duplicates (because 
     79// the images are recreated). 
     80WebKitResize.prototype.onBeforeMode = function(mode) 
     81{ 
     82  if(Xinha.is_webkit) 
     83  { 
     84    if(typeof this.editor._iframe._WebKitImageResizeEnd) 
     85      this.editor._iframe._WebKitImageResizeEnd(); 
     86     
     87    if(typeof this.editor._iframe._WebKitTableResizeEnd) 
     88      this.editor._iframe._WebKitTableResizeEnd(); 
     89     
     90    if(typeof this.editor._iframe._WebKitTdResizeEnd) 
     91      this.editor._iframe._WebKitTdResizeEnd(); 
     92  } 
     93} 
  • trunk/plugins/WebKitResize/jquery.webkitresize.js

    r1364 r1369  
    391391                lastCrc = crc; 
    392392            }); 
    393  
     393             
    394394            methods.refresh(context); 
    395395 
     396            ifrm._WebKitImageResizeEnd = function(){ methods.reset(context); } 
    396397        }); 
    397398    }; 
     
    713714            methods.refresh(context); 
    714715 
     716            ifrm._WebKitTableResizeEnd = function(){ methods.reset(context); } 
    715717        }); 
    716718    }; 
     
    10351037            methods.refresh(context); 
    10361038 
     1039            ifrm._WebKitTdResizeEnd = function(){ methods.reset(context); } 
    10371040        }); 
    10381041    }; 
Note: See TracChangeset for help on using the changeset viewer.