File tree Expand file tree Collapse file tree 3 files changed +398
-374
lines changed Expand file tree Collapse file tree 3 files changed +398
-374
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ yarn add @mvc-works/codearea
15
15
Put the ` textareaEditor.js ` file in the ` <script> ` tag of your page.
16
16
Suppose there's tag ` <textarea id='area'> ` here, use this in your ` .js ` file:
17
17
18
- ``` jade
18
+ ``` coffee
19
19
import { codearea } from " @mvc-works/codearea"
20
20
21
- codearea textareaElement
21
+ codearea (textareaElement)
22
+
23
+ # remove events
24
+ teardownCodearea (textareaElement)
22
25
```
23
26
24
27
Try here: http://repo.mvc-works.org/codearea/
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mvc-works/codearea" ,
3
- "version" : " 0.0.1-a1 " ,
3
+ "version" : " 0.0.1-a2 " ,
4
4
"description" : " Web app scaffold based on Webpack" ,
5
5
"main" : " lib/codearea.js" ,
6
6
"scripts" : {
7
7
"clean" : " rm -rfv dist/*" ,
8
8
"watch" : " yarn html && webpack-dev-server --config webpack.dev.cirru" ,
9
9
"release" : " yarn clean && webpack --config webpack.release.cirru && yarn release-html" ,
10
- "html" : " cirru-script template.cirru" ,
11
- "release-html" : " env=release cirru-script template.cirru" ,
10
+ "html" : " cirruscript template.cirru" ,
11
+ "release-html" : " env=release cirruscript template.cirru" ,
12
12
"up" : " yarn release && tiye-up" ,
13
13
"compile" : " coffee -o lib -bc src/" ,
14
14
"prepare" : " yarn compile" ,
You can’t perform that action at this time.
0 commit comments