Simple text editor based on tiptap. HTML format.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

101 lines
2.0 KiB

  1. it <template>
  2. <div class="about-pane dialog" v-if="visible">
  3. <div class="dialog-content">
  4. <button title="fermer" class="close-btn" v-on:click="collapse()">
  5. <svg viewPort="0 0 42 42" version="1.1"
  6. xmlns="http://www.w3.org/2000/svg">
  7. <line x1="0" y1="42"
  8. x2="42" y2="0"
  9. stroke="black"
  10. stroke-width="2"/>
  11. <line x1="0" y1="0"
  12. x2="42" y2="42"
  13. stroke="black"
  14. stroke-width="2"/>
  15. </svg>
  16. </button>
  17. <div class="about-content">
  18. <h2>DEDITOR</h2>
  19. <h3>DEDE EDITOR</h3>
  20. </div>
  21. </div>
  22. </div>
  23. <div v-else class="about-pane-button" v-on:click="expand"> ... </div>
  24. </template>
  25. <script>
  26. export default {
  27. components: {},
  28. data() {
  29. return {
  30. visible : false
  31. }
  32. },
  33. beforeDestroy() {
  34. },
  35. mounted() {
  36. },
  37. methods: {
  38. expand : function(){
  39. this.visible = true;
  40. this.$forceUpdate();
  41. console.log(this.visible);
  42. },
  43. collapse : function(){
  44. this.visible = false;
  45. },
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. @import '../assets/_dialog';
  51. .dialog-content{
  52. border: 2px solid black;
  53. display: flex;
  54. flex-direction: column;
  55. justify-content: center;
  56. }
  57. .about-pane-button{
  58. position: fixed;
  59. bottom : 5px;
  60. right: 5px;
  61. z-index: 55;
  62. cursor: pointer;
  63. font-weight: bold;
  64. }
  65. .about-content{
  66. display: flex;
  67. flex-direction: column;
  68. justify-content: center;
  69. align-items: center;
  70. color : #aaa;
  71. h2, h3{
  72. margin : 0;
  73. padding: 0;
  74. }
  75. h2{
  76. font-size: 5rem;
  77. }
  78. h3{
  79. font-size: 2rem;
  80. }
  81. }
  82. </style>