| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <div style="float: left; width: 50%; padding: 10px; box-sizing: border-box">
- <h1>Editor 1: [dir=rtl]</h1>
- <p>(Note: The editable gets dir=rtl attribute.)</p>
- <div id="editor1">
- <h2>ش ز ذ ي ث ب</h2>
- <h3>ل ا ه ت ن</h3>
- <p><i>م و ر خ</i> ح ض ق س <strong>ف ع ص</strong> ط غ ظ.</p>
- </div>
- <h1>Editor 2: [dir=ltr], mixed content</h1>
- <div id="editor2">
- <h2>Heading 1</h2>
- <h3>ل ا ه ت ن</h3>
- <p><em>This</em> ح ض an <strong>ف ع ص</strong> ط غ ظ.</p>
- </div>
- </div>
- <div style="float: right; width: 50%; padding: 10px; box-sizing: border-box">
- <h1>Native 1: [dir=rtl]</h1>
- <p>(Note: The editable has dir=rtl attribute.)</p>
- <div id="native1" contenteditable="true" dir="rtl" style="border: solid 1px grey">
- <h2>ش ز ذ ي ث ب</h2>
- <h3>ل ا ه ت ن</h3>
- <p><em>م و ر خ</em> ح ض ق س <strong>ف ع ص</strong> ط غ ظ.</p>
- </div>
- <h1>Native 2: [dir=ltr], mixed content</h1>
- <div id="native2" contenteditable="true" style="border: solid 1px grey">
- <h2>Heading 1</h2>
- <h3>ل ا ه ت ن</h3>
- <p><em>This</em> ح ض an <strong>ف ع ص</strong> ط غ ظ.</p>
- </div>
- </div>
|