assui 2.0.42 → 2.0.46
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/es/highlight-textarea/index.d.ts +1 -1
- package/es/rich-text-editor/index.d.ts +3 -0
- package/es/rich-text-editor/index.js +7 -3
- package/es/rich-text-editor/lang/zh_CN.d.ts +2 -1
- package/es/rich-text-editor/lang/zh_CN.js +1 -1
- package/es/rich-text-editor/style/index.less +6 -1
- package/lib/highlight-textarea/index.d.ts +1 -1
- package/lib/rich-text-editor/index.d.ts +3 -0
- package/lib/rich-text-editor/index.js +7 -2
- package/lib/rich-text-editor/lang/zh_CN.d.ts +2 -1
- package/lib/rich-text-editor/lang/zh_CN.js +1 -1
- package/lib/rich-text-editor/style/index.less +6 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { HighlighedContentsProps } from './HighlighedContents';
|
|
3
3
|
import type { HighlightType } from './types';
|
|
4
|
-
export interface HighlightTextareaProps extends HighlighedContentsProps {
|
|
4
|
+
export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
@@ -23,5 +23,8 @@ import 'tinymce/plugins/template';
|
|
|
23
23
|
import 'tinymce/plugins/help';
|
|
24
24
|
import './lang/zh_CN';
|
|
25
25
|
export declare type RichTextEditorProps = IAllProps;
|
|
26
|
+
declare const defaultPlugins: string[];
|
|
27
|
+
declare const defaultToolbar: string;
|
|
26
28
|
declare const RichTextEditor: (props: IAllProps) => JSX.Element;
|
|
29
|
+
export { defaultPlugins, defaultToolbar };
|
|
27
30
|
export default RichTextEditor;
|
|
@@ -25,7 +25,8 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
25
25
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
|
-
};
|
|
28
|
+
}; // @ts-nocheck
|
|
29
|
+
|
|
29
30
|
|
|
30
31
|
import React from 'react';
|
|
31
32
|
import { Editor } from '@tinymce/tinymce-react';
|
|
@@ -54,13 +55,15 @@ import 'tinymce/plugins/table';
|
|
|
54
55
|
import 'tinymce/plugins/template';
|
|
55
56
|
import 'tinymce/plugins/help';
|
|
56
57
|
import './lang/zh_CN';
|
|
58
|
+
var defaultPlugins = [' autolink lists link image charmap anchor', 'searchreplace code fullscreen', 'insertdatetime media table help wordcount'];
|
|
59
|
+
var defaultToolbar = 'undo redo | formatselect | ' + 'code bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help';
|
|
57
60
|
var defaultInit = {
|
|
58
61
|
height: 300,
|
|
59
62
|
language: 'zh_CN',
|
|
60
63
|
menubar: false,
|
|
61
64
|
images_upload_handler: function images_upload_handler() {},
|
|
62
|
-
plugins:
|
|
63
|
-
toolbar:
|
|
65
|
+
plugins: defaultPlugins,
|
|
66
|
+
toolbar: defaultToolbar,
|
|
64
67
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
65
68
|
};
|
|
66
69
|
|
|
@@ -75,4 +78,5 @@ var RichTextEditor = function RichTextEditor(props) {
|
|
|
75
78
|
}));
|
|
76
79
|
};
|
|
77
80
|
|
|
81
|
+
export { defaultPlugins, defaultToolbar };
|
|
78
82
|
export default RichTextEditor;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: void;
|
|
2
|
+
export default _default;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
@import '~antd/es/style/themes/default.less';
|
|
1
2
|
@import '~antd/es/style/index.less';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
.@{ant-prefix}-form-item-has-error {
|
|
4
5
|
.tox-tinymce {
|
|
5
6
|
border-color: @error-color;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
9
|
+
|
|
10
|
+
// .tox-statusbar__branding {
|
|
11
|
+
// display: none;
|
|
12
|
+
// }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { HighlighedContentsProps } from './HighlighedContents';
|
|
3
3
|
import type { HighlightType } from './types';
|
|
4
|
-
export interface HighlightTextareaProps extends HighlighedContentsProps {
|
|
4
|
+
export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
@@ -23,5 +23,8 @@ import 'tinymce/plugins/template';
|
|
|
23
23
|
import 'tinymce/plugins/help';
|
|
24
24
|
import './lang/zh_CN';
|
|
25
25
|
export declare type RichTextEditorProps = IAllProps;
|
|
26
|
+
declare const defaultPlugins: string[];
|
|
27
|
+
declare const defaultToolbar: string;
|
|
26
28
|
declare const RichTextEditor: (props: IAllProps) => JSX.Element;
|
|
29
|
+
export { defaultPlugins, defaultToolbar };
|
|
27
30
|
export default RichTextEditor;
|
|
@@ -38,6 +38,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", {
|
|
39
39
|
value: true
|
|
40
40
|
});
|
|
41
|
+
exports.defaultToolbar = exports.defaultPlugins = void 0; // @ts-nocheck
|
|
41
42
|
|
|
42
43
|
var react_1 = __importDefault(require("react"));
|
|
43
44
|
|
|
@@ -91,13 +92,17 @@ require("tinymce/plugins/help");
|
|
|
91
92
|
|
|
92
93
|
require("./lang/zh_CN");
|
|
93
94
|
|
|
95
|
+
var defaultPlugins = [' autolink lists link image charmap anchor', 'searchreplace code fullscreen', 'insertdatetime media table help wordcount'];
|
|
96
|
+
exports.defaultPlugins = defaultPlugins;
|
|
97
|
+
var defaultToolbar = 'undo redo | formatselect | ' + 'code bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help';
|
|
98
|
+
exports.defaultToolbar = defaultToolbar;
|
|
94
99
|
var defaultInit = {
|
|
95
100
|
height: 300,
|
|
96
101
|
language: 'zh_CN',
|
|
97
102
|
menubar: false,
|
|
98
103
|
images_upload_handler: function images_upload_handler() {},
|
|
99
|
-
plugins:
|
|
100
|
-
toolbar:
|
|
104
|
+
plugins: defaultPlugins,
|
|
105
|
+
toolbar: defaultToolbar,
|
|
101
106
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
102
107
|
};
|
|
103
108
|
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: void;
|
|
2
|
+
export default _default;
|
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
|
|
14
14
|
var tinymce_1 = __importDefault(require("tinymce/tinymce"));
|
|
15
15
|
|
|
16
|
-
tinymce_1["default"].addI18n('zh_CN', {
|
|
16
|
+
exports["default"] = tinymce_1["default"].addI18n('zh_CN', {
|
|
17
17
|
'Redo': "\u91CD\u505A",
|
|
18
18
|
'Undo': "\u64A4\u9500",
|
|
19
19
|
'Cut': "\u526A\u5207",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
@import '~antd/es/style/themes/default.less';
|
|
1
2
|
@import '~antd/es/style/index.less';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
.@{ant-prefix}-form-item-has-error {
|
|
4
5
|
.tox-tinymce {
|
|
5
6
|
border-color: @error-color;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
9
|
+
|
|
10
|
+
// .tox-statusbar__branding {
|
|
11
|
+
// display: none;
|
|
12
|
+
// }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.46",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"node": ">=10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6b05731680bab2db61c269152ffd5d6b409671bc"
|
|
73
73
|
}
|