authscape 1.0.660 → 1.0.662
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/index.js +3 -1
- package/package.json +1 -1
- package/src/components/RichTextEditor.js +2 -2
package/index.js
CHANGED
|
@@ -6553,6 +6553,8 @@ var Editor = (0, _dynamic["default"])(function () {
|
|
|
6553
6553
|
var RichTextEditor = function RichTextEditor(_ref) {
|
|
6554
6554
|
var html = _ref.html,
|
|
6555
6555
|
onSave = _ref.onSave,
|
|
6556
|
+
_ref$height = _ref.height,
|
|
6557
|
+
height = _ref$height === void 0 ? 400 : _ref$height,
|
|
6556
6558
|
_ref$isDisabled = _ref.isDisabled,
|
|
6557
6559
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled;
|
|
6558
6560
|
var _useState = (0, _react.useState)(_draftJs.EditorState.createEmpty()),
|
|
@@ -6579,7 +6581,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
6579
6581
|
editorClassName: "editorClassName",
|
|
6580
6582
|
readOnly: isDisabled,
|
|
6581
6583
|
editorStyle: {
|
|
6582
|
-
height:
|
|
6584
|
+
height: height
|
|
6583
6585
|
},
|
|
6584
6586
|
onEditorStateChange: onEditorStateChange
|
|
6585
6587
|
// mention={{
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const Editor = dynamic(
|
|
|
10
10
|
{ ssr: false }
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
-
export const RichTextEditor = ({html, onSave, isDisabled = false}) => {
|
|
13
|
+
export const RichTextEditor = ({html, onSave, height = 400, isDisabled = false}) => {
|
|
14
14
|
|
|
15
15
|
const [editorState, setEditorState] = useState(EditorState.createEmpty());
|
|
16
16
|
const onEditorStateChange = function (editorState) {
|
|
@@ -39,7 +39,7 @@ const Editor = dynamic(
|
|
|
39
39
|
wrapperClassName="wrapperClassName"
|
|
40
40
|
editorClassName="editorClassName"
|
|
41
41
|
readOnly={isDisabled}
|
|
42
|
-
editorStyle={{height:
|
|
42
|
+
editorStyle={{height:height}}
|
|
43
43
|
onEditorStateChange={onEditorStateChange}
|
|
44
44
|
// mention={{
|
|
45
45
|
// separator: " ",
|