rtl.html 1.2 KB

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