@zohodesk/dot 1.0.0-beta.197 → 1.0.0-beta.198
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
|
@@ -83,8 +83,7 @@ export default class TextEditor extends Component {
|
|
|
83
83
|
hookOnInsertHTML: validateEditorContentOnInsertHtml,
|
|
84
84
|
needCustomPaste: function (event, editorObj) {
|
|
85
85
|
return true; // By default reply editor needs customPaste, so returning true.
|
|
86
|
-
}
|
|
87
|
-
defaultfontfamily: "Arial"
|
|
86
|
+
}
|
|
88
87
|
};
|
|
89
88
|
|
|
90
89
|
if (!ZohoDeskEditor_Init.init) {
|
|
@@ -402,7 +401,7 @@ TextEditor.defaultProps = {
|
|
|
402
401
|
border: 'borderTop',
|
|
403
402
|
type: 'large',
|
|
404
403
|
changeEditorContent: false,
|
|
405
|
-
fontFamily: '
|
|
404
|
+
fontFamily: 'Lato',
|
|
406
405
|
shouldUpdateContent: true,
|
|
407
406
|
i18nKeys: {},
|
|
408
407
|
needInlineAttachment: false,
|
|
@@ -418,7 +417,7 @@ TextEditor.propTypes = {
|
|
|
418
417
|
editorCallback: PropTypes.func,
|
|
419
418
|
editorMode: PropTypes.string,
|
|
420
419
|
editorOptions: PropTypes.object,
|
|
421
|
-
fontFamily: PropTypes.oneOf(['
|
|
420
|
+
fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
|
|
422
421
|
getRef: PropTypes.func,
|
|
423
422
|
handleAlertMessage: PropTypes.func,
|
|
424
423
|
handleDropUpload: PropTypes.func,
|
|
@@ -136,7 +136,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
imgAspect: true
|
|
137
137
|
}, _defineProperty(_defaultObj, "handleInlineDropImage", needInlineAttachment ? this.handleInlineUpload : null), _defineProperty(_defaultObj, "needInlineAttachHandling", needInlineAttachment), _defineProperty(_defaultObj, "hookOnInsertHTML", _editorUtils.validateEditorContentOnInsertHtml), _defineProperty(_defaultObj, "needCustomPaste", function needCustomPaste(event, editorObj) {
|
|
138
138
|
return true; // By default reply editor needs customPaste, so returning true.
|
|
139
|
-
}),
|
|
139
|
+
}), _defaultObj);
|
|
140
140
|
|
|
141
141
|
if (!ZohoDeskEditor_Init.init) {
|
|
142
142
|
global.editorInitialize && global.editorInitialize();
|
|
@@ -445,7 +445,7 @@ TextEditor.defaultProps = {
|
|
|
445
445
|
border: 'borderTop',
|
|
446
446
|
type: 'large',
|
|
447
447
|
changeEditorContent: false,
|
|
448
|
-
fontFamily: '
|
|
448
|
+
fontFamily: 'Lato',
|
|
449
449
|
shouldUpdateContent: true,
|
|
450
450
|
i18nKeys: {},
|
|
451
451
|
needInlineAttachment: false,
|
|
@@ -461,7 +461,7 @@ TextEditor.propTypes = {
|
|
|
461
461
|
editorCallback: _propTypes["default"].func,
|
|
462
462
|
editorMode: _propTypes["default"].string,
|
|
463
463
|
editorOptions: _propTypes["default"].object,
|
|
464
|
-
fontFamily: _propTypes["default"].oneOf(['
|
|
464
|
+
fontFamily: _propTypes["default"].oneOf(['Lato', 'Roboto', 'Puvi']),
|
|
465
465
|
getRef: _propTypes["default"].func,
|
|
466
466
|
handleAlertMessage: _propTypes["default"].func,
|
|
467
467
|
handleDropUpload: _propTypes["default"].func,
|
package/package.json
CHANGED
|
@@ -101,8 +101,7 @@ export default class TextEditor extends Component {
|
|
|
101
101
|
hookOnInsertHTML: validateEditorContentOnInsertHtml,
|
|
102
102
|
needCustomPaste: function (event, editorObj) {
|
|
103
103
|
return true; // By default reply editor needs customPaste, so returning true.
|
|
104
|
-
}
|
|
105
|
-
defaultfontfamily: "Arial"
|
|
104
|
+
}
|
|
106
105
|
};
|
|
107
106
|
if (!ZohoDeskEditor_Init.init) {
|
|
108
107
|
global.editorInitialize && global.editorInitialize();
|
|
@@ -380,7 +379,7 @@ TextEditor.defaultProps = {
|
|
|
380
379
|
border: 'borderTop',
|
|
381
380
|
type: 'large',
|
|
382
381
|
changeEditorContent: false,
|
|
383
|
-
fontFamily: '
|
|
382
|
+
fontFamily: 'Lato',
|
|
384
383
|
shouldUpdateContent: true,
|
|
385
384
|
i18nKeys: {},
|
|
386
385
|
needInlineAttachment: false,
|
|
@@ -397,7 +396,7 @@ TextEditor.propTypes = {
|
|
|
397
396
|
editorCallback: PropTypes.func,
|
|
398
397
|
editorMode: PropTypes.string,
|
|
399
398
|
editorOptions: PropTypes.object,
|
|
400
|
-
fontFamily: PropTypes.oneOf(['
|
|
399
|
+
fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
|
|
401
400
|
getRef: PropTypes.func,
|
|
402
401
|
handleAlertMessage: PropTypes.func,
|
|
403
402
|
handleDropUpload: PropTypes.func,
|