@dotcms/uve 0.0.1-beta.25 → 0.0.1-beta.26

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 CHANGED
@@ -4,7 +4,75 @@ var _public = require('./public.cjs.js');
4
4
  require('@dotcms/types');
5
5
  require('@dotcms/types/internal');
6
6
 
7
-
7
+ /**
8
+ * TinyMCE default config across all versions
9
+ *
10
+ * @internal
11
+ */
12
+ const __DEFAULT_TINYMCE_CONFIG__ = {
13
+ menubar: false,
14
+ inline: true,
15
+ valid_styles: {
16
+ '*': 'font-size,font-family,color,text-decoration,text-align'
17
+ },
18
+ powerpaste_word_import: 'clean',
19
+ powerpaste_html_import: 'clean',
20
+ suffix: '.min' // Suffix to use when loading resources
21
+ };
22
+ /**
23
+ * TinyMCE config to use per mode
24
+ *
25
+ * @internal
26
+ */
27
+ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
28
+ full: {
29
+ plugins: 'link lists autolink charmap',
30
+ toolbar: ['styleselect undo redo | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignfull | numlist bullist outdent indent | hr charmap removeformat | link'],
31
+ style_formats: [{
32
+ title: 'Paragraph',
33
+ format: 'p'
34
+ }, {
35
+ title: 'Header 1',
36
+ format: 'h1'
37
+ }, {
38
+ title: 'Header 2',
39
+ format: 'h2'
40
+ }, {
41
+ title: 'Header 3',
42
+ format: 'h3'
43
+ }, {
44
+ title: 'Header 4',
45
+ format: 'h4'
46
+ }, {
47
+ title: 'Header 5',
48
+ format: 'h5'
49
+ }, {
50
+ title: 'Header 6',
51
+ format: 'h6'
52
+ }, {
53
+ title: 'Pre',
54
+ format: 'pre'
55
+ }, {
56
+ title: 'Code',
57
+ format: 'code'
58
+ }]
59
+ },
60
+ plain: {
61
+ plugins: '',
62
+ toolbar: ''
63
+ },
64
+ minimal: {
65
+ plugins: 'link autolink',
66
+ toolbar: 'bold italic underline | link',
67
+ valid_elements: 'strong,em,span[style],a[href]'
68
+ }
69
+ };
70
+ /**
71
+ * TinyMCE path
72
+ *
73
+ * @internal
74
+ */
75
+ const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
8
76
 
9
77
  exports.CUSTOM_NO_COMPONENT = _public.CUSTOM_NO_COMPONENT;
10
78
  exports.DEVELOPMENT_MODE = _public.DEVELOPMENT_MODE;
@@ -30,3 +98,6 @@ exports.getDotContainerAttributes = _public.getDotContainerAttributes;
30
98
  exports.getDotContentletAttributes = _public.getDotContentletAttributes;
31
99
  exports.isValidBlocks = _public.isValidBlocks;
32
100
  exports.setBounds = _public.setBounds;
101
+ exports.__BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__;
102
+ exports.__DEFAULT_TINYMCE_CONFIG__ = __DEFAULT_TINYMCE_CONFIG__;
103
+ exports.__TINYMCE_PATH_ON_DOTCMS__ = __TINYMCE_PATH_ON_DOTCMS__;
package/internal.esm.js CHANGED
@@ -1,3 +1,75 @@
1
1
  export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, f as EMPTY_CONTAINER_STYLE_ANGULAR, d as EMPTY_CONTAINER_STYLE_REACT, E as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, _ as __UVE_EVENTS__, b as __UVE_EVENT_ERROR_FALLBACK__, p as combineClasses, o as computeScrollIsInBottom, m as findDotCMSElement, n as findDotCMSVTLData, l as getClosestDotCMSContainerData, q as getColumnPositionClasses, u as getContainersData, v as getContentletsInContainer, k as getDotCMSContainerData, j as getDotCMSContentletsBound, h as getDotCMSPageBounds, w as getDotContainerAttributes, t as getDotContentletAttributes, y as isValidBlocks, x as setBounds } from './public.esm.js';
2
2
  import '@dotcms/types';
3
3
  import '@dotcms/types/internal';
4
+
5
+ /**
6
+ * TinyMCE default config across all versions
7
+ *
8
+ * @internal
9
+ */
10
+ const __DEFAULT_TINYMCE_CONFIG__ = {
11
+ menubar: false,
12
+ inline: true,
13
+ valid_styles: {
14
+ '*': 'font-size,font-family,color,text-decoration,text-align'
15
+ },
16
+ powerpaste_word_import: 'clean',
17
+ powerpaste_html_import: 'clean',
18
+ suffix: '.min' // Suffix to use when loading resources
19
+ };
20
+ /**
21
+ * TinyMCE config to use per mode
22
+ *
23
+ * @internal
24
+ */
25
+ const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
26
+ full: {
27
+ plugins: 'link lists autolink charmap',
28
+ toolbar: ['styleselect undo redo | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignfull | numlist bullist outdent indent | hr charmap removeformat | link'],
29
+ style_formats: [{
30
+ title: 'Paragraph',
31
+ format: 'p'
32
+ }, {
33
+ title: 'Header 1',
34
+ format: 'h1'
35
+ }, {
36
+ title: 'Header 2',
37
+ format: 'h2'
38
+ }, {
39
+ title: 'Header 3',
40
+ format: 'h3'
41
+ }, {
42
+ title: 'Header 4',
43
+ format: 'h4'
44
+ }, {
45
+ title: 'Header 5',
46
+ format: 'h5'
47
+ }, {
48
+ title: 'Header 6',
49
+ format: 'h6'
50
+ }, {
51
+ title: 'Pre',
52
+ format: 'pre'
53
+ }, {
54
+ title: 'Code',
55
+ format: 'code'
56
+ }]
57
+ },
58
+ plain: {
59
+ plugins: '',
60
+ toolbar: ''
61
+ },
62
+ minimal: {
63
+ plugins: 'link autolink',
64
+ toolbar: 'bold italic underline | link',
65
+ valid_elements: 'strong,em,span[style],a[href]'
66
+ }
67
+ };
68
+ /**
69
+ * TinyMCE path
70
+ *
71
+ * @internal
72
+ */
73
+ const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
74
+
75
+ export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__, __TINYMCE_PATH_ON_DOTCMS__ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "0.0.1-beta.25",
3
+ "version": "0.0.1-beta.26",
4
4
  "description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1,2 @@
1
1
  export * from './constants';
2
+ export * from './tinymce.config';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * TinyMCE default config across all versions
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const __DEFAULT_TINYMCE_CONFIG__: {
7
+ menubar: boolean;
8
+ inline: boolean;
9
+ valid_styles: {
10
+ '*': string;
11
+ };
12
+ powerpaste_word_import: string;
13
+ powerpaste_html_import: string;
14
+ suffix: string;
15
+ };
16
+ /**
17
+ * TinyMCE config to use per mode
18
+ *
19
+ * @internal
20
+ */
21
+ export declare const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__: {
22
+ full: {
23
+ plugins: string;
24
+ toolbar: string[];
25
+ style_formats: {
26
+ title: string;
27
+ format: string;
28
+ }[];
29
+ };
30
+ plain: {
31
+ plugins: string;
32
+ toolbar: string;
33
+ };
34
+ minimal: {
35
+ plugins: string;
36
+ toolbar: string;
37
+ valid_elements: string;
38
+ };
39
+ };
40
+ /**
41
+ * TinyMCE path
42
+ *
43
+ * @internal
44
+ */
45
+ export declare const __TINYMCE_PATH_ON_DOTCMS__ = "/ext/tinymcev7/tinymce.min.js";