Changeset 678 for trunk/popups


Ignore:
Timestamp:
01/21/07 21:15:13 (13 years ago)
Author:
ray
Message:
  • applied new non-underscored function names to core files
  • added file info header to getHTML.js, insert_image.js, link.js
  • updated release-notes.txt
Location:
trunk/popups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/popups/insert_image.js

    r677 r678  
     1 
     2  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:-- 
     3    --  Xinha (is not htmlArea) - http://xinha.gogo.co.nz/ 
     4    -- 
     5    --  Use of Xinha is granted by the terms of the htmlArea License (based on 
     6    --  BSD license)  please read license.txt in this package for details. 
     7    -- 
     8    --  Xinha was originally based on work by Mihai Bazon which is: 
     9    --      Copyright (c) 2003-2004 dynarch.com. 
     10    --      Copyright (c) 2002-2003 interactivetools.com, inc. 
     11    --      This copyright notice MUST stay intact for use. 
     12    -- 
     13    --  This is the standard implementation of the Xinha.prototype._insertImage method, 
     14    --  which provides the functionality to insert an image in the editor. 
     15    -- 
     16    --  The file is loaded by the Xinha Core when no alternative method (plugin) is loaded. 
     17    -- 
     18    -- 
     19    --  $HeadURL$ 
     20    --  $LastChangedDate$ 
     21    --  $LastChangedRevision$ 
     22    --  $LastChangedBy$ 
     23    --------------------------------------------------------------------------*/ 
     24                                                     
     25 
    126// Called when the user clicks on "InsertImage" button.  If an image is already 
    227// there, it will just modify it's properties. 
     
    4065        if ( Xinha.is_ie ) 
    4166        { 
    42           var sel = editor._getSelection(); 
    43           var range = editor._createRange(sel); 
     67          var sel = editor.getSelection(); 
     68          var range = editor.createRange(sel); 
    4469          editor._doc.execCommand("insertimage", false, param.f_url); 
    4570          img = range.parentElement(); 
  • trunk/popups/link.js

    r677 r678  
     1 
     2  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:-- 
     3    --  Xinha (is not htmlArea) - http://xinha.gogo.co.nz/ 
     4    -- 
     5    --  Use of Xinha is granted by the terms of the htmlArea License (based on 
     6    --  BSD license)  please read license.txt in this package for details. 
     7    -- 
     8    --  Xinha was originally based on work by Mihai Bazon which is: 
     9    --      Copyright (c) 2003-2004 dynarch.com. 
     10    --      Copyright (c) 2002-2003 interactivetools.com, inc. 
     11    --      This copyright notice MUST stay intact for use. 
     12    -- 
     13    --  This is the standard implementation of the Xinha.prototype._createLink method, 
     14    --  which provides the functionality to insert a hyperlink in the editor. 
     15    -- 
     16    --  The file is loaded by the Xinha Core when no alternative method (plugin) is loaded. 
     17    -- 
     18    -- 
     19    --  $HeadURL$ 
     20    --  $LastChangedDate$ 
     21    --  $LastChangedRevision$ 
     22    --  $LastChangedBy$ 
     23    --------------------------------------------------------------------------*/ 
     24                                                     
     25 
    126Xinha.prototype._createLink = function(link) 
    227{ 
     
    1641  if ( !link ) 
    1742  { 
    18     var sel = editor._getSelection(); 
    19     var range = editor._createRange(sel); 
     43    var sel = editor.getSelection(); 
     44    var range = editor.createRange(sel); 
    2045    var compare = 0; 
    2146    if ( Xinha.is_ie ) 
Note: See TracChangeset for help on using the changeset viewer.