easy-richtextarea 3.0.98 → 3.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A textarea element that handles and hands off events well.
|
|
4
4
|
|
|
5
|
-
This element enshrines the concept of being active, that is
|
|
5
|
+
This element enshrines the concept of being active, that is hogging the user input. This means that several event handlers are registered to handle user input events when the element is activated. These handlers are then unregistered when the element is deactivated. Using it will take some of the headache out of having multiple textareas in one application because only the active rich textarea will invoke its handlers. It also provides better event handling. For example, the change handler will be invoked whenever the content or selection changes, no matter how often, rather then just, say, when the focus is lost.
|
|
6
6
|
|
|
7
7
|
### JSX support
|
|
8
8
|
|
|
@@ -115,19 +115,21 @@ There is no default styling. The rich textarea element has a class name, however
|
|
|
115
115
|
```
|
|
116
116
|
import withStyle from "easy-with-style";
|
|
117
117
|
|
|
118
|
-
export default (RichTextarea)`
|
|
118
|
+
export default withStyle(RichTextarea)`
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
display: none;
|
|
121
121
|
|
|
122
122
|
.active {
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
display: block
|
|
125
125
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
`;
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
+
Here active rich textarea elements are visible, inactive ones are not.
|
|
132
|
+
|
|
131
133
|
## Building
|
|
132
134
|
|
|
133
135
|
Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-richtextarea",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.101",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/easy-richtextarea",
|
|
7
7
|
"description": "A textarea element that handles and hands off events well.",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"url": "https://github.com/djalbat/easy-richtextarea"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"easy": "^13.0.33"
|
|
14
|
-
"easy-with-style": "^3.0.120"
|
|
13
|
+
"easy": "^13.0.33"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@swc/core": "^1.2.50",
|
|
17
|
+
"easy-with-style": "^3.0.120",
|
|
18
18
|
"esbuild": "^0.9.2",
|
|
19
19
|
"express": "^4.17.1",
|
|
20
20
|
"lively-cli": "^2.0.34",
|