easy-richtextarea 4.0.102 → 4.0.105

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
@@ -57,33 +57,33 @@ import { RichTextarea } from "easy-richtextarea";
57
57
 
58
58
  const richTextarea =
59
59
 
60
- <RichTextarea onChange={changeHandler}
61
- onScroll={scrollHandler}
62
- onFocus={focusHandler}
63
- onBlur={blurHandler}
60
+ <RichTextarea onCustomChange={changeCustomHandler}
61
+ onCustomScroll={scrollCUstomHandler}
62
+ onCustomFocus={focusCustomHandler}
63
+ onCustomBlur={blurCustomHandler}
64
64
  />
65
65
 
66
66
  ;
67
67
 
68
- function changeHandler(event, element) {
68
+ function changeCustomHandler(event, element) {
69
69
  const contentChanged = element.hasContentChanged(),
70
70
  selectionChanged = element.hasSelectionChanged();
71
71
 
72
72
  console.log(contentChanged, selectionChanged)
73
73
  }
74
74
 
75
- function scrollHandler(event, element) {
75
+ function scrollCUstomHandler(event, element) {
76
76
  const scrollTop = element.getScrollTop(),
77
77
  scrollLeft = element.getScrollLeft();
78
78
 
79
79
  console.log(scrollTop, scrollLeft)
80
80
  }
81
81
 
82
- function focusHandler(event, element) {
82
+ function focusCustomHandler(event, element) {
83
83
  console.log("focus")
84
84
  }
85
85
 
86
- function blurHandler(event, element) {
86
+ function blurCustomHandler(event, element) {
87
87
  console.log("blur")
88
88
  }
89
89
  ```