Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-04-04 16:42:02

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

image attributes

What can be easisest way to force the attributes of an inserted image to be in the form width="100" height="100" instead of style="width:100px; height: 100px;"  ?
Right now, it comes up rather arbitrarily. Some times it is in height=xx width=xx format, and on others in the CSS format (this happens mostly after resizing the image.) At least on Firefox 1.5.


I was toying with the idea of adding f_width,f_height to the htmlarea.js function _insertImage  and  to \popups\insert_image.html
Will it work?
Or is there some simple config option.

Many thanks!

Offline

#2 2006-04-05 03:21:48

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: image attributes

Anyone?

Offline

#3 2006-04-05 18:29:33

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: image attributes

??
?

Offline

#4 2006-04-05 19:55:10

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: image attributes

This would be once again a browser internal behaviour. I'm just guessing, but what you say (happens after resizing) it sounds like xinha does put it like you want it when the image is inserted. Afterwards the image is left to the editing functions of the browser.
I'm shure it could be intercepted with an event handler (or so)

Offline

#5 2006-04-06 08:09:06

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: image attributes

I'll see what use I can put that information to, and how. Thanks.
Though I'm a bit skeptic about  my abilities at this, because last I tried to force editor to insert <b> </b> by trapping the "bold" command, the editor alway overwrote the tags with <strong> </strong>..


Any clues?

Offline

#6 2006-04-07 05:37:54

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: image attributes

There's a function called HTMLarea.prototype.outwardHTML() that transforms the HTML the code on pageunload and switch to textmode that among others for the usage of <strong> instead of <b> (because it is supposed to be the 'better' style)

Offline

#7 2006-04-07 06:02:12

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: image attributes

Thanks Ray ! You've been an invaluable help, time and again.

Offline

#8 2006-04-07 06:29:57

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: image attributes

no matter

Offline

Board footer

Powered by FluxBB