htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
HTMLArea 3.0-RC1


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


sutike
New User

Apr 20, 2004, 8:32 AM

Post #1 of 6 (3284 views)
Shortcut
HTMLArea 3.0-RC1 Can't Post

hy guys!

i just installed ha3.0, and there is a bug in it! when i try to insert an image from ie6, for example 1.jpg, then the under ie in the source prefixes 1.jpg with myhost.mydomain.com so i see myhost.mydomain.com/1.jpg, but it should be http://myhost.mydomain.com/1.jpg, or it did not need to complement 1.jpg with myhost.mydomain.com!

of course i trie cvs version, but it works bad too. under mozilla this function works good!

could anybody help me?


howardf
Novice

Apr 20, 2004, 1:09 PM

Post #2 of 6 (3266 views)
Shortcut
Re: [sutike] HTMLArea 3.0-RC1 [In reply to] Can't Post

Try this change to htmlarea.js. Just comment out the highlighted lines.

<CODE>

HTMLArea.prototype.stripBaseURL = function(string) {
var baseurl = this.config.baseURL;

// strip to last directory in case baseurl points to a file
baseurl = baseurl.replace(/[^\/]+$/, '');
var basere = new RegExp(baseurl);
//string = string.replace(basere, "");

// strip host-part of URL which is added by MSIE to links relative to server root
//baseurl = baseurl.replace(/^(https?:\/\/[^\/]+)(.*)$/, '$1');
//basere = new RegExp(baseurl);
return string.replace(basere, "");
};

</CODE>


sutike
New User

Apr 21, 2004, 3:17 AM

Post #3 of 6 (3252 views)
Shortcut
Re: [howardf] HTMLArea 3.0-RC1 [In reply to] Can't Post

unfortunately the problem is still there :(((

i insert 1.jpg, and i get cms.office/1.jpg
cms.office is our intranet address!

any clue?


sutike
New User

Apr 21, 2004, 3:24 AM

Post #4 of 6 (3252 views)
Shortcut
Re: [howardf] HTMLArea 3.0-RC1 [In reply to] Can't Post

and here is an another problem!

if i insert img under IE6, and give a full internet addres (which is not in our intra address).
so if for example enter this into image url:
http://index.hu/cikkepek/0404/velvet/cosmo/.gdata/gp_04.jpg

then i got in the source:
index.hu/cikkepek/0404/velvet/cosmo/.gdata/gp_04.jpg
so the http tag is missing!


howardf
Novice

Apr 21, 2004, 10:14 AM

Post #5 of 6 (3244 views)
Shortcut
Re: [sutike] HTMLArea 3.0-RC1 [In reply to] Can't Post

The code that I commented out seems to bring back the missing http://www.mydomain.com/ for me.

My problem was that when I inserted an image (using IE) with the address http://www.mydomain.com/htmlarea/images/pic.jpg
only the /htmlarea/images/pic.jpg would remain in the code.

Obviously the link would be broken if the file generated from the htmlarea was served on http://www.anyoneelsesdomain.com unless the file structure and image was exported too.

Seems Mishoo was trying to cope with IE putting the http reference in when it wasn't required. If I didn't need to use the generated files outside of my domain it would not have mattered to me.

Having said that, the key to your problem is probably within those of code.


sutike
New User

Apr 22, 2004, 2:58 AM

Post #6 of 6 (3226 views)
Shortcut
Re: [howardf] HTMLArea 3.0-RC1 [In reply to] Can't Post

i did a return string; in the 1st row of that function, now it is better, but it is still there the http://mydomain.com/ but i just only want relative or absolute url-s!

anyway where is mishoo? :)

 
 
 


Search for (options)