ie5.5 dhtml editor within modaldialog

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jollyjumper
Forum Contributor
Posts: 107
Joined: Sat Jan 25, 2003 11:03 am

ie5.5 dhtml editor within modaldialog

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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).
Post Reply