i18n.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>vue html5 editor demo</title>
  6. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
  7. <script src="../dist/vue-html5-editor.js"></script>
  8. <script src="https://cdn.bootcss.com/vue/2.2.6/vue.js"></script>
  9. <link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
  10. <style>
  11. #app {
  12. margin: 50px auto;
  13. width: 800px;
  14. max-width: 100%;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div id="app">
  20. <vue-html5-editor :content.sync="content" :height="500"></vue-html5-editor>
  21. </div>
  22. <script>
  23. Vue.use(VueHtml5Editor, {
  24. language: "mars",
  25. i18n: {
  26. "mars": {
  27. "align": "===",
  28. "image": "<**>",
  29. "list": "&&&",
  30. "link": "%%^",
  31. "unlink": "^%%",
  32. "table": "@@@",
  33. "font": "@#$",
  34. "full screen": "~~~",
  35. "text": "###",
  36. "eraser": "<=",
  37. "info": "^^^",
  38. "color": "%%%",
  39. "please enter a url": "%^& @#$#$%%^)(&-",
  40. "create link": "&&&%$#",
  41. "bold": "[\";]",
  42. "italic": "\\\\",
  43. "underline": "_-_",
  44. "strike through": "--}",
  45. "subscript": "^*^",
  46. "superscript": ">*<",
  47. "heading": "!!!",
  48. "font name": "@!!",
  49. "font size": ">><<",
  50. "left justify": "<<<",
  51. "center justify": "<->",
  52. "right justify": ">>>",
  53. "ordered list": ":|||",
  54. "unordered list": "?|||",
  55. "fore color": "@#!~",
  56. "background color": "@!~~",
  57. "row count": "--)",
  58. "column count": "--(",
  59. "save": "++<>++",
  60. "upload": "<++++>",
  61. "progress": ">~~~",
  62. "unknown": "/\\/\\",
  63. "please wait": "-))))",
  64. "error": "&%$#@",
  65. "abort": "//&",
  66. "reset": ")***(",
  67. "hr": ">----",
  68. "undo": "<---|"
  69. }
  70. }
  71. })
  72. new Vue({
  73. el: "#app",
  74. data: {
  75. content: "<h3>#$^%%^ $%&*&(* ';,'; )((*&*^&$</h3>",
  76. }
  77. })
  78. </script>
  79. </body>
  80. </html>