Dynamically resizing an iframe issue

S

SAM

Le 4/9/10 5:26 AM, DL a écrit :


we well see the problem but ...
I would have preferred to see the html page itself
ie. to understand how this editor works and what can cause this phenomenon
I may have another solution though... do you think what I think?

it seems that the iframe disappears and the editing is done outside of it.
Without the code my cristal ball doesn't give me the solution
 
D

DL

Le 4/9/10 5:26 AM, DL a écrit :



we well see the problem but ...
I would have preferred to see the html page itself
ie. to understand how this editor works and what can cause this phenomenon


it seems that the iframe disappears and the editing is done outside of it..
Without the code my cristal ball doesn't give me the solution


....
<img onclick="var x =
frames['textbox1'].document.selection.createRange();x.execCommand('InsertOrderedList');x.select();"
src="icons/list_ordered.gif" style="valign:bottom;width:25;height:
20" />

<input type="button" id="MakeBold" accesskey="B" onclick="var l =
frames['textbox1'].document.selection.createRange();l.execCommand('Bold');l..select();"
value="B" style="background-image:url('icons/bold.gif');width:
25;height:23" />

<iframe

id="textbox1" name="textbox1" onload="document.frames

['textbox1'].document.designMode='on';" contenteditable="true"

tabindex="2"></iframe><br/>
....


I thought I've found the culprit, that is, the bullet list element, I
use image tag instead of input, so, I changed it to

<input type="image" onclick="var x =
frames['textbox1'].document.selection.createRange
();x.execCommand('InsertOrderedList');x.select();" src="icons/
list_ordered.gif"
style="valign:bottom;width:25;height:20" />

but still to no avail.

The complete set of rendered HTML code is very messy.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top