@bbl-digital/snorre 2.2.78 → 2.2.79
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/dist/bundle.js
CHANGED
@@ -31107,7 +31107,8 @@
|
|
31107
31107
|
maxHeight,
|
31108
31108
|
customToolbar,
|
31109
31109
|
invalidMessage,
|
31110
|
-
|
31110
|
+
allowImages,
|
31111
|
+
pasteAsText,
|
31111
31112
|
onChange,
|
31112
31113
|
onBlur
|
31113
31114
|
}) => {
|
@@ -31132,7 +31133,6 @@
|
|
31132
31133
|
children: jsxRuntime$1.jsx(tinymceReact.Editor, {
|
31133
31134
|
onBlur: onBlur,
|
31134
31135
|
onInit: () => setLoaded(true),
|
31135
|
-
initialValue: initialValue,
|
31136
31136
|
apiKey: TINYMCE_API_KEY,
|
31137
31137
|
value: value,
|
31138
31138
|
onEditorChange: handleChange,
|
@@ -31148,10 +31148,10 @@
|
|
31148
31148
|
content_style: editorContentCss,
|
31149
31149
|
language: 'nb_NO',
|
31150
31150
|
block_formats: editorBlockFormats,
|
31151
|
-
paste_data_images:
|
31152
|
-
paste_as_text: type === 'basic',
|
31151
|
+
paste_data_images: allowImages,
|
31152
|
+
paste_as_text: pasteAsText !== undefined ? pasteAsText : type === 'basic',
|
31153
31153
|
contextmenu: false,
|
31154
|
-
invalid_elements: !
|
31154
|
+
invalid_elements: !allowImages ? 'img' : undefined,
|
31155
31155
|
default_link_target: '_blank',
|
31156
31156
|
link_assume_external_targets: 'https',
|
31157
31157
|
link_title: false,
|
package/esm/core/Editor/index.js
CHANGED
@@ -18,7 +18,8 @@ const Editor = ({
|
|
18
18
|
maxHeight,
|
19
19
|
customToolbar,
|
20
20
|
invalidMessage,
|
21
|
-
|
21
|
+
allowImages,
|
22
|
+
pasteAsText,
|
22
23
|
onChange,
|
23
24
|
onBlur
|
24
25
|
}) => {
|
@@ -43,7 +44,6 @@ const Editor = ({
|
|
43
44
|
children: _jsx(TinyEditor, {
|
44
45
|
onBlur: onBlur,
|
45
46
|
onInit: () => setLoaded(true),
|
46
|
-
initialValue: initialValue,
|
47
47
|
apiKey: TINYMCE_API_KEY,
|
48
48
|
value: value,
|
49
49
|
onEditorChange: handleChange,
|
@@ -59,10 +59,10 @@ const Editor = ({
|
|
59
59
|
content_style: editorContentCss,
|
60
60
|
language: 'nb_NO',
|
61
61
|
block_formats: editorBlockFormats,
|
62
|
-
paste_data_images:
|
63
|
-
paste_as_text: type === 'basic',
|
62
|
+
paste_data_images: allowImages,
|
63
|
+
paste_as_text: pasteAsText !== undefined ? pasteAsText : type === 'basic',
|
64
64
|
contextmenu: false,
|
65
|
-
invalid_elements: !
|
65
|
+
invalid_elements: !allowImages ? 'img' : undefined,
|
66
66
|
default_link_target: '_blank',
|
67
67
|
link_assume_external_targets: 'https',
|
68
68
|
link_title: false,
|
@@ -24,7 +24,9 @@ interface IProps {
|
|
24
24
|
/** Error message */
|
25
25
|
invalidMessage?: string;
|
26
26
|
/** Allow image in editor */
|
27
|
-
|
27
|
+
allowImages?: boolean;
|
28
|
+
/** Strip all pasted styles */
|
29
|
+
pasteAsText?: boolean;
|
28
30
|
/** Cb on blur */
|
29
31
|
onBlur?: () => void;
|
30
32
|
/** Cb on change */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAgBpC,UAAU,MAAM;IACd,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IAClC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yGAAyG;IACzG,aAAa,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IACpC,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,uGAAuG;IACvG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4BAA4B;IAC5B,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAgBpC,UAAU,MAAM;IACd,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IAClC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yGAAyG;IACzG,aAAa,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IACpC,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,uGAAuG;IACvG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,mBAAmB;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACrD;AAED,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,MAAM,CAqFtB,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/lib/core/Editor/index.js
CHANGED
@@ -18,7 +18,8 @@ const Editor = ({
|
|
18
18
|
maxHeight,
|
19
19
|
customToolbar,
|
20
20
|
invalidMessage,
|
21
|
-
|
21
|
+
allowImages,
|
22
|
+
pasteAsText,
|
22
23
|
onChange,
|
23
24
|
onBlur
|
24
25
|
}) => {
|
@@ -43,7 +44,6 @@ const Editor = ({
|
|
43
44
|
children: _jsx(TinyEditor, {
|
44
45
|
onBlur: onBlur,
|
45
46
|
onInit: () => setLoaded(true),
|
46
|
-
initialValue: initialValue,
|
47
47
|
apiKey: TINYMCE_API_KEY,
|
48
48
|
value: value,
|
49
49
|
onEditorChange: handleChange,
|
@@ -59,10 +59,10 @@ const Editor = ({
|
|
59
59
|
content_style: editorContentCss,
|
60
60
|
language: 'nb_NO',
|
61
61
|
block_formats: editorBlockFormats,
|
62
|
-
paste_data_images:
|
63
|
-
paste_as_text: type === 'basic',
|
62
|
+
paste_data_images: allowImages,
|
63
|
+
paste_as_text: pasteAsText !== undefined ? pasteAsText : type === 'basic',
|
64
64
|
contextmenu: false,
|
65
|
-
invalid_elements: !
|
65
|
+
invalid_elements: !allowImages ? 'img' : undefined,
|
66
66
|
default_link_target: '_blank',
|
67
67
|
link_assume_external_targets: 'https',
|
68
68
|
link_title: false,
|