easy-richtextarea 3.0.154 → 4.0.1
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 +8 -0
- package/example.js +836 -1
- package/lib/browser.js +33 -1
- package/lib/constants.js +13 -0
- package/lib/content/transform.js +17 -0
- package/lib/main.js +45 -4
- package/lib/operation/delete.js +240 -0
- package/lib/operation/empty.js +101 -0
- package/lib/operation/insert.js +198 -0
- package/lib/operations/fromJSON.js +40 -0
- package/lib/operations/generate.js +42 -0
- package/lib/operations/toJSON.js +17 -0
- package/lib/operations/transform.js +35 -0
- package/lib/stringCompare.js +33 -0
- package/lib/types.js +34 -0
- package/package.json +6 -2
- package/src/browser.js +9 -0
- package/src/constants.js +3 -0
- package/src/content/transform.js +5 -0
- package/src/main.js +9 -0
- package/src/operation/delete.js +206 -0
- package/src/operation/empty.js +71 -0
- package/src/operation/insert.js +163 -0
- package/src/operations/fromJSON.js +34 -0
- package/src/operations/generate.js +42 -0
- package/src/operations/toJSON.js +5 -0
- package/src/operations/transform.js +57 -0
- package/src/stringCompare.js +33 -0
- package/src/types.js +11 -0
- package/test/content/transform.js +59 -0
- package/test/helpers.js +85 -0
- package/test/operation/delete.js +245 -0
- package/test/operation/empty.js +83 -0
- package/test/operation/insert.js +201 -0
- package/test/operations/generate.js +82 -0
- package/test/operations/transform.js +130 -0
package/README.md
CHANGED
|
@@ -122,6 +122,14 @@ export default withStyle(RichTextarea)`
|
|
|
122
122
|
|
|
123
123
|
Here active rich textarea elements are visible, inactive ones are not.
|
|
124
124
|
|
|
125
|
+
## Running the tests
|
|
126
|
+
|
|
127
|
+
This can be done from the root of the repository with the following command:
|
|
128
|
+
|
|
129
|
+
npm test
|
|
130
|
+
|
|
131
|
+
As of writing the tests cover the operational transformations and recursive function to transform sequences of operations, but not much else.
|
|
132
|
+
|
|
125
133
|
## Building
|
|
126
134
|
|
|
127
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:
|