Mode 0

Hi,

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.

<html>

<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>

</head>

<body dir=ltr contenteditable>


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


</body>

</html>
 

Any help would be extremely appreciated.

2 answers

0
points

Attributes should normally be inside ""

try

<body dir="ltr">


<p dir="ltr" >Sample LTR text</p>
<br>
<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 about 7 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 (http://msdn.microsoft.com/en-us/library/ms533776%28VS.85%29.aspx). Is there a way to disable setting layout? Thanks Mode about 7 years ago
0
points

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 about 7 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. http://msdn.microsoft.com/en-us/library/cc351024%28VS.85%29.aspx#userinterface Mode about 7 years ago