8
0

rtl.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div style="float: left; width: 50%; padding: 10px; box-sizing: border-box">
  2. <h1>Editor 1: [dir=rtl]</h1>
  3. <p>(Note: The editable gets dir=rtl attribute.)</p>
  4. <div id="editor1">
  5. <h2>ش ز ذ ي ث ب</h2>
  6. <h3>ل ا ه ت ن</h3>
  7. <p><i>م و ر خ</i> ح ض ق س <strong>ف ع ص</strong> ط غ ظ.</p>
  8. </div>
  9. <h1>Editor 2: [dir=ltr], mixed content</h1>
  10. <div id="editor2">
  11. <h2>Heading 1</h2>
  12. <h3>ل ا ه ت ن</h3>
  13. <p><em>This</em> ح ض an <strong>ف ع ص</strong> ط غ ظ.</p>
  14. </div>
  15. </div>
  16. <div style="float: right; width: 50%; padding: 10px; box-sizing: border-box">
  17. <h1>Native 1: [dir=rtl]</h1>
  18. <p>(Note: The editable has dir=rtl attribute.)</p>
  19. <div id="native1" contenteditable="true" dir="rtl" style="border: solid 1px grey">
  20. <h2>ش ز ذ ي ث ب</h2>
  21. <h3>ل ا ه ت ن</h3>
  22. <p><em>م و ر خ</em> ح ض ق س <strong>ف ع ص</strong> ط غ ظ.</p>
  23. </div>
  24. <h1>Native 2: [dir=ltr], mixed content</h1>
  25. <div id="native2" contenteditable="true" style="border: solid 1px grey">
  26. <h2>Heading 1</h2>
  27. <h3>ل ا ه ت ن</h3>
  28. <p><em>This</em> ح ض an <strong>ف ع ص</strong> ط غ ظ.</p>
  29. </div>
  30. </div>