@dotcms/uve 26.9.29-1-next.2808 → 26.9.29-1-next.2821
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/internal.cjs.js +4 -16
- package/internal.esm.js +5 -16
- package/package.json +3 -3
- package/src/internal/tinymce.config.d.ts +3 -11
package/internal.cjs.js
CHANGED
|
@@ -15,11 +15,9 @@ const __DEFAULT_TINYMCE_CONFIG__ = {
|
|
|
15
15
|
valid_styles: {
|
|
16
16
|
'*': 'font-size,font-family,color,text-decoration,text-align'
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// (4.9.6) had no such thing, so this keeps the toolbar matching the original look.
|
|
22
|
-
promotion: false
|
|
18
|
+
powerpaste_word_import: 'clean',
|
|
19
|
+
powerpaste_html_import: 'clean',
|
|
20
|
+
suffix: '.min' // Suffix to use when loading resources
|
|
23
21
|
};
|
|
24
22
|
/**
|
|
25
23
|
* TinyMCE config to use per mode
|
|
@@ -69,21 +67,12 @@ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
|
|
|
69
67
|
valid_elements: 'strong,em,span[style],a[href]'
|
|
70
68
|
}
|
|
71
69
|
};
|
|
72
|
-
/**
|
|
73
|
-
* Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
|
|
74
|
-
*
|
|
75
|
-
* Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
|
|
76
|
-
* were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
|
|
77
|
-
*
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
const __TINYMCE_BASE_PATH_ON_DOTCMS__ = '/ext/tinymce';
|
|
81
70
|
/**
|
|
82
71
|
* TinyMCE path
|
|
83
72
|
*
|
|
84
73
|
* @internal
|
|
85
74
|
*/
|
|
86
|
-
const __TINYMCE_PATH_ON_DOTCMS__ =
|
|
75
|
+
const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
|
|
87
76
|
|
|
88
77
|
/**
|
|
89
78
|
* Normalizes a field definition into the schema format expected by UVE.
|
|
@@ -419,7 +408,6 @@ exports.readContentletDataset = _public.readContentletDataset;
|
|
|
419
408
|
exports.setBounds = _public.setBounds;
|
|
420
409
|
exports.__BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__;
|
|
421
410
|
exports.__DEFAULT_TINYMCE_CONFIG__ = __DEFAULT_TINYMCE_CONFIG__;
|
|
422
|
-
exports.__TINYMCE_BASE_PATH_ON_DOTCMS__ = __TINYMCE_BASE_PATH_ON_DOTCMS__;
|
|
423
411
|
exports.__TINYMCE_PATH_ON_DOTCMS__ = __TINYMCE_PATH_ON_DOTCMS__;
|
|
424
412
|
exports.defineStyleEditorSchema = defineStyleEditorSchema;
|
|
425
413
|
exports.normalizeForm = normalizeForm;
|
package/internal.esm.js
CHANGED
|
@@ -14,11 +14,9 @@ const __DEFAULT_TINYMCE_CONFIG__ = {
|
|
|
14
14
|
valid_styles: {
|
|
15
15
|
'*': 'font-size,font-family,color,text-decoration,text-align'
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// (4.9.6) had no such thing, so this keeps the toolbar matching the original look.
|
|
21
|
-
promotion: false
|
|
17
|
+
powerpaste_word_import: 'clean',
|
|
18
|
+
powerpaste_html_import: 'clean',
|
|
19
|
+
suffix: '.min' // Suffix to use when loading resources
|
|
22
20
|
};
|
|
23
21
|
/**
|
|
24
22
|
* TinyMCE config to use per mode
|
|
@@ -68,21 +66,12 @@ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
|
|
|
68
66
|
valid_elements: 'strong,em,span[style],a[href]'
|
|
69
67
|
}
|
|
70
68
|
};
|
|
71
|
-
/**
|
|
72
|
-
* Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
|
|
73
|
-
*
|
|
74
|
-
* Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
|
|
75
|
-
* were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
|
|
76
|
-
*
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
const __TINYMCE_BASE_PATH_ON_DOTCMS__ = '/ext/tinymce';
|
|
80
69
|
/**
|
|
81
70
|
* TinyMCE path
|
|
82
71
|
*
|
|
83
72
|
* @internal
|
|
84
73
|
*/
|
|
85
|
-
const __TINYMCE_PATH_ON_DOTCMS__ =
|
|
74
|
+
const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
|
|
86
75
|
|
|
87
76
|
/**
|
|
88
77
|
* Normalizes a field definition into the schema format expected by UVE.
|
|
@@ -380,4 +369,4 @@ const styleEditorField = {
|
|
|
380
369
|
})
|
|
381
370
|
};
|
|
382
371
|
|
|
383
|
-
export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__,
|
|
372
|
+
export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__, __TINYMCE_PATH_ON_DOTCMS__, defineStyleEditorSchema, getUVEState, normalizeForm, registerStyleEditorSchemas, styleEditorField };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/uve",
|
|
3
|
-
"version": "26.9.29-1-next.
|
|
3
|
+
"version": "26.9.29-1-next.2821",
|
|
4
4
|
"description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dotCMS/core.git#main"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@dotcms/types": "26.9.29-1-next.
|
|
10
|
+
"@dotcms/types": "26.9.29-1-next.2821"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@dotcms/types": "26.9.29-1-next.
|
|
13
|
+
"@dotcms/types": "26.9.29-1-next.2821"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"dotCMS",
|
|
@@ -9,8 +9,9 @@ export declare const __DEFAULT_TINYMCE_CONFIG__: {
|
|
|
9
9
|
valid_styles: {
|
|
10
10
|
'*': string;
|
|
11
11
|
};
|
|
12
|
+
powerpaste_word_import: string;
|
|
13
|
+
powerpaste_html_import: string;
|
|
12
14
|
suffix: string;
|
|
13
|
-
promotion: boolean;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* TinyMCE config to use per mode
|
|
@@ -36,18 +37,9 @@ export declare const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__: {
|
|
|
36
37
|
valid_elements: string;
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
|
-
/**
|
|
40
|
-
* Directory dotCMS serves the version-neutral vendored TinyMCE copy from.
|
|
41
|
-
*
|
|
42
|
-
* Single source of truth for both the script path and TinyMCE's own `base_url` option — the two
|
|
43
|
-
* were previously hardcoded separately in `dotcms-editable-text.component.ts` and could drift.
|
|
44
|
-
*
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
|
-
export declare const __TINYMCE_BASE_PATH_ON_DOTCMS__ = "/ext/tinymce";
|
|
48
40
|
/**
|
|
49
41
|
* TinyMCE path
|
|
50
42
|
*
|
|
51
43
|
* @internal
|
|
52
44
|
*/
|
|
53
|
-
export declare const __TINYMCE_PATH_ON_DOTCMS__ = "/ext/
|
|
45
|
+
export declare const __TINYMCE_PATH_ON_DOTCMS__ = "/ext/tinymcev7/tinymce.min.js";
|