fit-ui 2.10.13 → 2.11.0
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/Documentation.html +1 -1
- package/dist/Fit.UI.js +93 -66
- package/dist/Fit.UI.min.js +1 -1
- package/dist/Resources/CKEditor/contents.css +208 -208
- package/dist/Resources/CKEditor/plugins/autocomplete/skins/default.css +38 -38
- package/dist/Resources/CKEditor/plugins/dialog/styles/dialog.css +18 -18
- package/dist/Resources/CKEditor/plugins/emoji/skins/default.css +237 -237
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_ie.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_ie8.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_iequirks.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_gecko.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie8.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_iequirks.css +4 -4
- package/dist/Resources/CKEditor/styles.js +137 -137
- package/package.json +1 -1
- package/types/index.d.ts +27 -6
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// This file contains style definitions that can be used by CKEditor plugins.
|
|
7
|
-
//
|
|
8
|
-
// The most common use for it is the "stylescombo" plugin which shows the Styles drop-down
|
|
9
|
-
// list containing all styles in the editor toolbar. Other plugins, like
|
|
10
|
-
// the "div" plugin, use a subset of the styles for their features.
|
|
11
|
-
//
|
|
12
|
-
// If you do not have plugins that depend on this file in your editor build, you can simply
|
|
13
|
-
// ignore it. Otherwise it is strongly recommended to customize this file to match your
|
|
14
|
-
// website requirements and design properly.
|
|
15
|
-
//
|
|
16
|
-
// For more information refer to: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_styles.html#style-rules
|
|
17
|
-
|
|
18
|
-
CKEDITOR.stylesSet.add( 'default', [
|
|
19
|
-
/* Block styles */
|
|
20
|
-
|
|
21
|
-
// These styles are already available in the "Format" drop-down list ("format" plugin),
|
|
22
|
-
// so they are not needed here by default. You may enable them to avoid
|
|
23
|
-
// placing the "Format" combo in the toolbar, maintaining the same features.
|
|
24
|
-
/*
|
|
25
|
-
{ name: 'Paragraph', element: 'p' },
|
|
26
|
-
{ name: 'Heading 1', element: 'h1' },
|
|
27
|
-
{ name: 'Heading 2', element: 'h2' },
|
|
28
|
-
{ name: 'Heading 3', element: 'h3' },
|
|
29
|
-
{ name: 'Heading 4', element: 'h4' },
|
|
30
|
-
{ name: 'Heading 5', element: 'h5' },
|
|
31
|
-
{ name: 'Heading 6', element: 'h6' },
|
|
32
|
-
{ name: 'Preformatted Text',element: 'pre' },
|
|
33
|
-
{ name: 'Address', element: 'address' },
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
|
|
37
|
-
{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
|
|
38
|
-
{
|
|
39
|
-
name: 'Special Container',
|
|
40
|
-
element: 'div',
|
|
41
|
-
styles: {
|
|
42
|
-
padding: '5px 10px',
|
|
43
|
-
background: '#eee',
|
|
44
|
-
border: '1px solid #ccc'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
/* Inline styles */
|
|
49
|
-
|
|
50
|
-
// These are core styles available as toolbar buttons. You may opt enabling
|
|
51
|
-
// some of them in the Styles drop-down list, removing them from the toolbar.
|
|
52
|
-
// (This requires the "stylescombo" plugin.)
|
|
53
|
-
/*
|
|
54
|
-
{ name: 'Strong', element: 'strong', overrides: 'b' },
|
|
55
|
-
{ name: 'Emphasis', element: 'em' , overrides: 'i' },
|
|
56
|
-
{ name: 'Underline', element: 'u' },
|
|
57
|
-
{ name: 'Strikethrough', element: 'strike' },
|
|
58
|
-
{ name: 'Subscript', element: 'sub' },
|
|
59
|
-
{ name: 'Superscript', element: 'sup' },
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
|
|
63
|
-
|
|
64
|
-
{ name: 'Big', element: 'big' },
|
|
65
|
-
{ name: 'Small', element: 'small' },
|
|
66
|
-
{ name: 'Typewriter', element: 'tt' },
|
|
67
|
-
|
|
68
|
-
{ name: 'Computer Code', element: 'code' },
|
|
69
|
-
{ name: 'Keyboard Phrase', element: 'kbd' },
|
|
70
|
-
{ name: 'Sample Text', element: 'samp' },
|
|
71
|
-
{ name: 'Variable', element: 'var' },
|
|
72
|
-
|
|
73
|
-
{ name: 'Deleted Text', element: 'del' },
|
|
74
|
-
{ name: 'Inserted Text', element: 'ins' },
|
|
75
|
-
|
|
76
|
-
{ name: 'Cited Work', element: 'cite' },
|
|
77
|
-
{ name: 'Inline Quotation', element: 'q' },
|
|
78
|
-
|
|
79
|
-
{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
|
|
80
|
-
{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
|
|
81
|
-
|
|
82
|
-
/* Object styles */
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
name: 'Styled Image (left)',
|
|
86
|
-
element: 'img',
|
|
87
|
-
attributes: { 'class': 'left' }
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
name: 'Styled Image (right)',
|
|
92
|
-
element: 'img',
|
|
93
|
-
attributes: { 'class': 'right' }
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
name: 'Compact Table',
|
|
98
|
-
element: 'table',
|
|
99
|
-
attributes: {
|
|
100
|
-
cellpadding: '5',
|
|
101
|
-
cellspacing: '0',
|
|
102
|
-
border: '1',
|
|
103
|
-
bordercolor: '#ccc'
|
|
104
|
-
},
|
|
105
|
-
styles: {
|
|
106
|
-
'border-collapse': 'collapse'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
{ name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
|
|
111
|
-
{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } },
|
|
112
|
-
|
|
113
|
-
/* Widget styles */
|
|
114
|
-
|
|
115
|
-
{ name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } },
|
|
116
|
-
{ name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } },
|
|
117
|
-
|
|
118
|
-
{ name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } },
|
|
119
|
-
|
|
120
|
-
{ name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } },
|
|
121
|
-
|
|
122
|
-
{ name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' }, group: 'size' },
|
|
123
|
-
{ name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' }, group: 'size' },
|
|
124
|
-
{ name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' }, group: 'size' },
|
|
125
|
-
{ name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' }, group: 'size' },
|
|
126
|
-
{ name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' }, group: 'size' },
|
|
127
|
-
|
|
128
|
-
// Adding space after the style name is an intended workaround. For now, there
|
|
129
|
-
// is no option to create two styles with the same name for different widget types. See https://dev.ckeditor.com/ticket/16664.
|
|
130
|
-
{ name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' }, group: 'size' },
|
|
131
|
-
{ name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
|
|
132
|
-
{ name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
|
|
133
|
-
{ name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
|
|
134
|
-
{ name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }
|
|
135
|
-
|
|
136
|
-
] );
|
|
137
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// This file contains style definitions that can be used by CKEditor plugins.
|
|
7
|
+
//
|
|
8
|
+
// The most common use for it is the "stylescombo" plugin which shows the Styles drop-down
|
|
9
|
+
// list containing all styles in the editor toolbar. Other plugins, like
|
|
10
|
+
// the "div" plugin, use a subset of the styles for their features.
|
|
11
|
+
//
|
|
12
|
+
// If you do not have plugins that depend on this file in your editor build, you can simply
|
|
13
|
+
// ignore it. Otherwise it is strongly recommended to customize this file to match your
|
|
14
|
+
// website requirements and design properly.
|
|
15
|
+
//
|
|
16
|
+
// For more information refer to: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_styles.html#style-rules
|
|
17
|
+
|
|
18
|
+
CKEDITOR.stylesSet.add( 'default', [
|
|
19
|
+
/* Block styles */
|
|
20
|
+
|
|
21
|
+
// These styles are already available in the "Format" drop-down list ("format" plugin),
|
|
22
|
+
// so they are not needed here by default. You may enable them to avoid
|
|
23
|
+
// placing the "Format" combo in the toolbar, maintaining the same features.
|
|
24
|
+
/*
|
|
25
|
+
{ name: 'Paragraph', element: 'p' },
|
|
26
|
+
{ name: 'Heading 1', element: 'h1' },
|
|
27
|
+
{ name: 'Heading 2', element: 'h2' },
|
|
28
|
+
{ name: 'Heading 3', element: 'h3' },
|
|
29
|
+
{ name: 'Heading 4', element: 'h4' },
|
|
30
|
+
{ name: 'Heading 5', element: 'h5' },
|
|
31
|
+
{ name: 'Heading 6', element: 'h6' },
|
|
32
|
+
{ name: 'Preformatted Text',element: 'pre' },
|
|
33
|
+
{ name: 'Address', element: 'address' },
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
|
|
37
|
+
{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
|
|
38
|
+
{
|
|
39
|
+
name: 'Special Container',
|
|
40
|
+
element: 'div',
|
|
41
|
+
styles: {
|
|
42
|
+
padding: '5px 10px',
|
|
43
|
+
background: '#eee',
|
|
44
|
+
border: '1px solid #ccc'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
/* Inline styles */
|
|
49
|
+
|
|
50
|
+
// These are core styles available as toolbar buttons. You may opt enabling
|
|
51
|
+
// some of them in the Styles drop-down list, removing them from the toolbar.
|
|
52
|
+
// (This requires the "stylescombo" plugin.)
|
|
53
|
+
/*
|
|
54
|
+
{ name: 'Strong', element: 'strong', overrides: 'b' },
|
|
55
|
+
{ name: 'Emphasis', element: 'em' , overrides: 'i' },
|
|
56
|
+
{ name: 'Underline', element: 'u' },
|
|
57
|
+
{ name: 'Strikethrough', element: 'strike' },
|
|
58
|
+
{ name: 'Subscript', element: 'sub' },
|
|
59
|
+
{ name: 'Superscript', element: 'sup' },
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
|
|
63
|
+
|
|
64
|
+
{ name: 'Big', element: 'big' },
|
|
65
|
+
{ name: 'Small', element: 'small' },
|
|
66
|
+
{ name: 'Typewriter', element: 'tt' },
|
|
67
|
+
|
|
68
|
+
{ name: 'Computer Code', element: 'code' },
|
|
69
|
+
{ name: 'Keyboard Phrase', element: 'kbd' },
|
|
70
|
+
{ name: 'Sample Text', element: 'samp' },
|
|
71
|
+
{ name: 'Variable', element: 'var' },
|
|
72
|
+
|
|
73
|
+
{ name: 'Deleted Text', element: 'del' },
|
|
74
|
+
{ name: 'Inserted Text', element: 'ins' },
|
|
75
|
+
|
|
76
|
+
{ name: 'Cited Work', element: 'cite' },
|
|
77
|
+
{ name: 'Inline Quotation', element: 'q' },
|
|
78
|
+
|
|
79
|
+
{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
|
|
80
|
+
{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
|
|
81
|
+
|
|
82
|
+
/* Object styles */
|
|
83
|
+
|
|
84
|
+
{
|
|
85
|
+
name: 'Styled Image (left)',
|
|
86
|
+
element: 'img',
|
|
87
|
+
attributes: { 'class': 'left' }
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
{
|
|
91
|
+
name: 'Styled Image (right)',
|
|
92
|
+
element: 'img',
|
|
93
|
+
attributes: { 'class': 'right' }
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
{
|
|
97
|
+
name: 'Compact Table',
|
|
98
|
+
element: 'table',
|
|
99
|
+
attributes: {
|
|
100
|
+
cellpadding: '5',
|
|
101
|
+
cellspacing: '0',
|
|
102
|
+
border: '1',
|
|
103
|
+
bordercolor: '#ccc'
|
|
104
|
+
},
|
|
105
|
+
styles: {
|
|
106
|
+
'border-collapse': 'collapse'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
{ name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
|
|
111
|
+
{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } },
|
|
112
|
+
|
|
113
|
+
/* Widget styles */
|
|
114
|
+
|
|
115
|
+
{ name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } },
|
|
116
|
+
{ name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } },
|
|
117
|
+
|
|
118
|
+
{ name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } },
|
|
119
|
+
|
|
120
|
+
{ name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } },
|
|
121
|
+
|
|
122
|
+
{ name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' }, group: 'size' },
|
|
123
|
+
{ name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' }, group: 'size' },
|
|
124
|
+
{ name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' }, group: 'size' },
|
|
125
|
+
{ name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' }, group: 'size' },
|
|
126
|
+
{ name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' }, group: 'size' },
|
|
127
|
+
|
|
128
|
+
// Adding space after the style name is an intended workaround. For now, there
|
|
129
|
+
// is no option to create two styles with the same name for different widget types. See https://dev.ckeditor.com/ticket/16664.
|
|
130
|
+
{ name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' }, group: 'size' },
|
|
131
|
+
{ name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
|
|
132
|
+
{ name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
|
|
133
|
+
{ name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
|
|
134
|
+
{ name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }
|
|
135
|
+
|
|
136
|
+
] );
|
|
137
|
+
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -670,8 +670,10 @@ declare namespace Fit
|
|
|
670
670
|
{
|
|
671
671
|
// Functions defined by Fit.Browser
|
|
672
672
|
/**
|
|
673
|
-
* Returns name of browser
|
|
674
|
-
|
|
673
|
+
* Returns name of browser useful for adjusting behaviour based on render engine.
|
|
674
|
+
Possible values are: Chrome (both WebKit and Blink based - also returned for modern versions of
|
|
675
|
+
Opera and Edge), Safari (also returned for Edge, Chrome, Opera, and Firefox on iOS), Edge (version 12-18),
|
|
676
|
+
MSIE (version 8-11), Firefox, Opera (version 1-12), and Unknown.
|
|
675
677
|
* @function GetBrowser
|
|
676
678
|
* @static
|
|
677
679
|
* @param {false} [returnAppId=false] - Set True to have app specific identifier returned.
|
|
@@ -679,14 +681,20 @@ declare namespace Fit
|
|
|
679
681
|
*/
|
|
680
682
|
public static GetBrowser(returnAppId?:false):"Edge" | "Chrome" | "Safari" | "MSIE" | "Firefox" | "Opera" | "Unknown";
|
|
681
683
|
/**
|
|
682
|
-
* Returns browser app
|
|
683
|
-
|
|
684
|
+
* Returns browser app name useful for adjusting behaviour based on actual
|
|
685
|
+
application, regardless of render engine and platform. Possible values are:
|
|
686
|
+
Chrome (both Webkit and Blink based), Safari, Edge (both legacy and modern),
|
|
687
|
+
MSIE (version 8-11), Firefox, Opera (both legacy and modern), and Unknown.
|
|
688
|
+
Be careful not to check against browser app name and app version alone.
|
|
689
|
+
For instance Opera 3 on a touch device is newer than Opera 60 on a Desktop
|
|
690
|
+
device, as they are two completely different browsers. Check whether the browser runs on
|
|
691
|
+
a tablet or phone using e.g. Fit.Browser.IsMobile(true) or Fit.Browser.GetInfo(true).IsMobile.
|
|
684
692
|
* @function GetBrowser
|
|
685
693
|
* @static
|
|
686
694
|
* @param {true} returnAppId - Set True to have app specific identifier returned.
|
|
687
|
-
* @returns "Edge" | "
|
|
695
|
+
* @returns "Edge" | "Chrome" | "Safari" | "MSIE" | "Firefox" | "Opera" | "Unknown"
|
|
688
696
|
*/
|
|
689
|
-
public static GetBrowser(returnAppId:true):"Edge" | "
|
|
697
|
+
public static GetBrowser(returnAppId:true):"Edge" | "Chrome" | "Safari" | "MSIE" | "Firefox" | "Opera" | "Unknown";
|
|
690
698
|
/**
|
|
691
699
|
* Get style value applied after stylesheets have been loaded.
|
|
692
700
|
An empty string or null may be returned if style has not been defined or does not exist.
|
|
@@ -824,6 +832,19 @@ declare namespace Fit
|
|
|
824
832
|
public static GetViewPortDimensions(includeScrollbars?:boolean):Fit.TypeDefs.Dimension;
|
|
825
833
|
/**
|
|
826
834
|
* Returns value indicating whether device is a mobile device or not.
|
|
835
|
+
Notice that some phones and tablets may identify as desktop devices,
|
|
836
|
+
in which case IsMobile(..) will return False. In this case consider
|
|
837
|
+
using Fit.Browser.IsTouchEnabled(), e.g. in combination with
|
|
838
|
+
Fit.Browser.GetBrowser(), or a check against the size of the viewport,
|
|
839
|
+
which will provide some indication as to whether device should be treated
|
|
840
|
+
as a mobile device or not. As an example, Safari on iPad identifies as
|
|
841
|
+
a Mac computer by default (it has "Request Desktop Website" enabled by default).
|
|
842
|
+
To always detect iPad and iPhone as a mobile device, no matter the configuration
|
|
843
|
+
of "Request Desktop Website"), simply use:
|
|
844
|
+
var isMobile = Fit.Browser.IsMobile(true) || (Fit.Browser.GetBrowser() === "Safari" && Fit.Browser.IsTouchEnabled())
|
|
845
|
+
We will not be able to distinguish between an iPhone and an iPad though, not even
|
|
846
|
+
by looking at the viewport size, since this approach is unreliable with high resolution
|
|
847
|
+
iPhones and support for split screen which affects the viewport size.
|
|
827
848
|
* @function IsMobile
|
|
828
849
|
* @static
|
|
829
850
|
* @param {boolean} [includeTablets=true] - Value indicating whether tablets are considered mobile devices or not.
|