Page 1 of 1

ie5.5 dhtml editor within modaldialog

Posted: Tue May 13, 2003 4:25 am
by jollyjumper
Hi Everybody,

I've got a question. I want to use the built in dhtml editor in ie5.5 from within a modaldialog box.

Normally I would use an iframe and set iframe.document.designMode = 'on'. But this doesn't work in a modaldialog box(opened with showmodaldialog).

Is this possible?

Thanks in advance.

Greetz Jolly.

Posted: Tue May 13, 2003 5:42 am
by volka
maybe

Code: Select all

<html>
	<body>
		<div style="border: 1px solid silver;" contenteditable="true">edit me</div>
	</body>
</html>
works in a modal dialog

Posted: Tue May 13, 2003 12:48 pm
by patrikG
If you're developing for IE 4+ only, have a look at the TextRange-Object - which is quite powerful, yet somewhat buggy (e.g. cut'n paste only works reliably with pure ASCII, not formated text like MS Word).