Mode 0


I have the following code which I use in a data entry part of an application. The user can also enter rtl text like arabic or hebrew which I wrap in the rtl paragraph to display properly.

I recently added some new features making use of IE8 standard mode features and I noticed that now when I click on rtl paragraphs, the resize handles appears. Is it possible to disable this? It works perfectly In IE7 mode and the RTL paragraph can be clicked on and selected just like a normal para.


<head><meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>


<body dir=ltr contenteditable>

<p dir=ltr >Sample LTR text</p>
<p dir=rtl >Sample RTL text</p>



Any help would be extremely appreciated.

2 answers


Attributes should normally be inside ""


<body dir="ltr">

<p dir="ltr" >Sample LTR text</p>
<p dir="rtl">Sample RTL text</p>

that stopped the cursor change for me.

do you need the contenteditable? shouldn't it be contenteditable="true or false"? its that that's adding the grab handles, but I'm not sure why...

Answered almost 10 years ago by Tony Crockford
  • Hi Tony, I tested your code. It is only present when the contenteditable is set. I think in IE8 setting the direction attribute is triggering the element to have layout (tested through hasLayout). It doesnt happen with IE7 and IE documentation doesn't list setting the direction as something that would cause the element to have layout ( Is there a way to disable setting layout? Thanks Mode almost 10 years ago

You can also use p {resize:none;} to disable resizable handlers (that is true for Safari, though I am not sure about IE 8).

Answered almost 10 years ago by Divya Manian
  • Hi Divya, Thanks for the reply. It doesn't work in IE8 since resize is a css3 feature that is not supported in IE yet. Mode almost 10 years ago