Explorar el Código

added TextAreaPlugin integration + fixed url of tracim_lib dependency

Skylsmoi hace 6 años
padre
commit
483e5c8f2d
Se han modificado 3 ficheros con 8 adiciones y 4 borrados
  1. 1 1
      package.json
  2. 3 0
      src/component/PageHtml.jsx
  3. 4 3
      src/css/index.styl

+ 1 - 1
package.json Ver fichero

@@ -36,7 +36,7 @@
36 36
     "url-loader": "^0.6.2",
37 37
     "webpack": "^3.8.1",
38 38
     "whatwg-fetch": "^2.0.3",
39
-    "tracim_lib": "git://github.com/Skylsmoi/tracim_lib.git"
39
+    "tracim_lib": "git://github.com/tracim/tracim_lib.git"
40 40
   },
41 41
   "devDependencies": {
42 42
     "webpack-dashboard": "^1.1.1",

+ 3 - 0
src/component/PageHtml.jsx Ver fichero

@@ -1,10 +1,13 @@
1 1
 import React from 'react'
2
+import { TextAreaPlugin } from 'tracim_lib'
2 3
 
3 4
 const PageHtml = props => {
4 5
   return (
5 6
     <div className='wsFilePageHtml__contentpage__textnote'>
6 7
       <div className='wsFilePageHtml__contentpage__textnote__latestversion' dangerouslySetInnerHTML={{__html: props.version}} />
7 8
       <div className='wsFilePageHtml__contentpage__textnote__text' dangerouslySetInnerHTML={{__html: props.text}} />
9
+
10
+      <TextAreaPlugin customClass={'wsFilePageHtml'} />
8 11
     </div>
9 12
   )
10 13
 }

+ 4 - 3
src/css/index.styl Ver fichero

@@ -1,11 +1,10 @@
1 1
 @import "../../node_modules/tracim_lib/src/css/Variable.styl"
2 2
 
3 3
 .wsFilePageHtml
4
-  width 1200px
5
-  height calc(100% - 85px)
6
-  overflow-Y auto
7 4
   &__header
8 5
     background-color htmlColor
6
+    &__editionmode
7
+      display none
9 8
     &__icon
10 9
       .fa-file-word-o
11 10
         color white
@@ -21,6 +20,8 @@
21 20
         opacity 0.7
22 21
       &__text
23 22
         font-size 14px
23
+      &__edition
24
+        display none
24 25
     &__messagelist
25 26
       min-height 300px
26 27
       &__item