You are not logged in.
Pages: 1
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
Anyone?
Offline
??
?
Offline
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
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
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
Thanks Ray ! You've been an invaluable help, time and again.
Offline
Pages: 1