easy-richtextarea 4.0.200 → 4.0.202

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 CHANGED
@@ -2,7 +2,14 @@
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 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.
5
+ In the DOM API the active element is the one that has the focus.
6
+ That concept is twisted here somewhat.
7
+ A rich textarea is active if it has the focus but can remain active when it loses it.
8
+ Rich textareas are made for sitting behind a pretty printer that is still shown even when the focus is lost.
9
+ Scroll events still need to be handled, for example.
10
+
11
+ As well as a different concept of being active, rich textareas also have an improved change event mechanism that results in custom change events being fired not just whenever the content changes but when the selection changes to.
12
+ Again this makes them more suitable for sitting behind a pretty printer.
6
13
 
7
14
  ### JSX support
8
15