PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/assets/tinymce/tests/manual/removeformat.html

https://gitlab.com/gricelya/test
HTML | 76 lines | 66 code | 7 blank | 3 comment | 0 complexity | d10243ddb01bba73921f37f0c675a1dc MD5 | raw file
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Full featured example</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <script src="../js/tinymce_loader.js"></script>
  7. <script>
  8. tinymce.init({
  9. mode: "textareas",
  10. plugins: "pagebreak,layer,table,save,emoticons,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,template,tabfocus",
  11. add_unload_trigger: 0
  12. });
  13. </script>
  14. <!-- /TinyMCE -->
  15. </head>
  16. <body>
  17. <form method="post" action="http://www.tinymce.com/dump.php?example=true">
  18. <div>
  19. <h3>Full featured example</h3>
  20. <p>
  21. This page shows all available buttons and plugins that are included in the TinyMCE core package.
  22. There are more examples on how to use TinyMCE in the <a href="http://wiki.moxiecode.com/examples/tinymce/">Wiki</a>.
  23. </p>
  24. <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
  25. <div>
  26. <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
  27. <p>text1 <span style="color:red">middle</span> text2</p>
  28. <p><b><em>xyz<span style="color:red">---</span>123</em></b></p>
  29. <p><b><em>xyz<span style="color:green">---</span>123</em></b></p>
  30. <table>
  31. <tr>
  32. <td><span style="color:green"><b>bold 1</b><em>italic 1</em></span></td>
  33. <td><b>bold 2</b><em>italic 2</em></td>
  34. </tr>
  35. <tr>
  36. <td><b>bold 3</b><em><a href="#">italic 3</a></em></td>
  37. <td><b>bold 4</b><em>italic 4</em></td>
  38. </tr>
  39. </table>
  40. <p><b><em>xyz<span style="color:red">---</span>123</em></b></p>
  41. <ul>
  42. <li><b><em>test 1</em></b><b><em>test 2</em></b></li>
  43. <li><b><em>test 1</em></b><b><em>test 2</em></b></li>
  44. </ul>
  45. <p><b><em>xyz<span style="color:green">---</span>123</em></b></p>
  46. <p>text 1</p>
  47. <p>text 2</p>
  48. <p>text 3</p>
  49. <p>text 4</p>
  50. </textarea>
  51. </div>
  52. <!-- Some integration calls -->
  53. <a href="javascript:;" onmousedown="tinymce.get('elm1').show();">[Show]</a>
  54. <a href="javascript:;" onmousedown="tinymce.get('elm1').hide();">[Hide]</a>
  55. <a href="javascript:;" onmousedown="tinymce.get('elm1').execCommand('Bold');">[Bold]</a>
  56. <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').getContent());">[Get contents]</a>
  57. <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').getContent({format:'raw'}));">[Get raw]</a>
  58. <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').selection.getContent());">[Get selected HTML]</a>
  59. <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').selection.getContent({format : 'text'}));">[Get selected text]</a>
  60. <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').selection.getNode().nodeName);">[Get selected element]</a>
  61. <a href="javascript:;" onmousedown="tinymce.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
  62. <a href="javascript:;" onmousedown="tinymce.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
  63. <br />
  64. <input type="submit" name="save" value="Submit" />
  65. <input type="reset" name="reset" value="Reset" />
  66. </div>
  67. </form>
  68. </body>
  69. </html>