SnippetMaster Support Forums

General => General Discussion & Support => Topic started by: gigi on August 29, 2002, 07:23:45 AM



Title: Javascript error in linking images
Post by: gigi on August 29, 2002, 07:23:45 AM
Dear all,

testing the sw I got an error when trying to link an image (i.e. insert an image, then select it and try to click the "insert link" button).

The error I get is:

********************************

Line: 1060
Char: 2
Error: Object doesn't support this property or method
Code: 0
URL: http://www.snippetmaster.com/snippetmaster/ieeditor/ieeditor.php?BASEURL=/

********************************


Line 1060 (shown in context) is:

********************************

function DECMD_HYPERLINK_onclick() {
   var arr, args, oSel, oParent, sType;
   oSel = tbContentElement.DOM.selection;
   sType=oSel.type;
   var oRange = oSel.createRange();
------->   var oElement = oRange.parentElement();   <-----------

   // Check if selected text only has an incomplete set of <a> tags. (If only part of a link was selected)

********************************

Any idea?

Thanks for your help


Title: In addition...
Post by: gigi on August 29, 2002, 08:02:43 AM
I forgot to specify that this happens when you click an image before inserting a link.

If you simply select it, i.e. SHIFT+ARROWS (even when selecting some text before and after the img) and try to link it, you get no error but the img simply disappears.

Sorry again for the double post.


Title: Re: Javascript error in linking images
Post by: admin on August 29, 2002, 09:57:58 AM
Quote from: gigi
testing the sw I got an error when trying to link an image (i.e. insert an image, then select it and try to click the "insert link" button).


Unfortunately, one of the big to do (see TODO.TXT (http://www.snippetmaster.com/snippetmaster/TODO.txt) file) tasks I haven't had a chance to do yet is the ability to add links to images.

If anyone is willing to figure out how to do this, I would be eternally grateful!  I just haven't had time to look into the issue.

Sorry.   :(


Powered by SMF 1.1.19 | SMF © 2013, Simple Machines