@ckeditor/ckeditor5-core 35.1.0 → 35.2.1
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/lang/translations/es-co.po +49 -0
- package/package.json +17 -17
- package/src/editor/editorconfig.jsdoc +94 -10
- package/src/index.js +12 -1
- package/theme/icons/bold.svg +1 -0
- package/theme/icons/importexport.svg +1 -0
- package/theme/icons/paragraph.svg +1 -0
- package/theme/icons/plus.svg +1 -0
- package/theme/icons/text.svg +1 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Spanish (Colombia) (https://www.transifex.com/ckeditor/teams/11143/es_CO/)\n"
|
|
16
|
+
"Language: es_CO\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "Label for the Cancel button."
|
|
20
|
+
msgid "Cancel"
|
|
21
|
+
msgstr "Cancelar"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label used by a button next to the color palette in the color picker that removes the color (resets it to an empty value, example usages in font color or table properties)."
|
|
24
|
+
msgid "Remove color"
|
|
25
|
+
msgstr "Quitar color"
|
|
26
|
+
|
|
27
|
+
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
28
|
+
msgid "Restore default"
|
|
29
|
+
msgstr "Restaurar valores predeterminados"
|
|
30
|
+
|
|
31
|
+
msgctxt "Label for the Save button."
|
|
32
|
+
msgid "Save"
|
|
33
|
+
msgstr "Guardar"
|
|
34
|
+
|
|
35
|
+
msgctxt "Label of a toolbar button which reveals more toolbar items."
|
|
36
|
+
msgid "Show more items"
|
|
37
|
+
msgstr "Mostrar más elementos"
|
|
38
|
+
|
|
39
|
+
msgctxt "Label for an ‘X of Y’ status of a typical next/previous navigation. For instance, ‘Page 5 of 20’ or 'Search result 5 of 20'."
|
|
40
|
+
msgid "%0 of %1"
|
|
41
|
+
msgstr "%0 de %1"
|
|
42
|
+
|
|
43
|
+
msgctxt "A generic error message displayed on upload failure. The file name is concatenated to this text."
|
|
44
|
+
msgid "Cannot upload file:"
|
|
45
|
+
msgstr "No se pudo cargar el archivo:"
|
|
46
|
+
|
|
47
|
+
msgctxt "Accessible label of the specific editing area of the editor acting as a root of the entire application."
|
|
48
|
+
msgid "Rich Text Editor. Editing area: %0"
|
|
49
|
+
msgstr "Editor de texto enriquecido. Área de edición: %0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-core",
|
|
3
|
-
"version": "35.1
|
|
3
|
+
"version": "35.2.1",
|
|
4
4
|
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-engine": "^35.1
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "^35.1
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "^35.1
|
|
26
|
+
"@ckeditor/ckeditor5-engine": "^35.2.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "^35.2.1",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "^35.2.1",
|
|
29
29
|
"lodash-es": "^4.17.15"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ckeditor/ckeditor5-autoformat": "^35.1
|
|
33
|
-
"@ckeditor/ckeditor5-basic-styles": "^35.1
|
|
34
|
-
"@ckeditor/ckeditor5-block-quote": "^35.1
|
|
35
|
-
"@ckeditor/ckeditor5-editor-classic": "^35.1
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^35.1
|
|
37
|
-
"@ckeditor/ckeditor5-heading": "^35.1
|
|
38
|
-
"@ckeditor/ckeditor5-image": "^35.1
|
|
39
|
-
"@ckeditor/ckeditor5-indent": "^35.1
|
|
40
|
-
"@ckeditor/ckeditor5-link": "^35.1
|
|
41
|
-
"@ckeditor/ckeditor5-list": "^35.1
|
|
42
|
-
"@ckeditor/ckeditor5-media-embed": "^35.1
|
|
43
|
-
"@ckeditor/ckeditor5-paragraph": "^35.1
|
|
44
|
-
"@ckeditor/ckeditor5-table": "^35.1
|
|
32
|
+
"@ckeditor/ckeditor5-autoformat": "^35.2.1",
|
|
33
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.2.1",
|
|
34
|
+
"@ckeditor/ckeditor5-block-quote": "^35.2.1",
|
|
35
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.2.1",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^35.2.1",
|
|
37
|
+
"@ckeditor/ckeditor5-heading": "^35.2.1",
|
|
38
|
+
"@ckeditor/ckeditor5-image": "^35.2.1",
|
|
39
|
+
"@ckeditor/ckeditor5-indent": "^35.2.1",
|
|
40
|
+
"@ckeditor/ckeditor5-link": "^35.2.1",
|
|
41
|
+
"@ckeditor/ckeditor5-list": "^35.2.1",
|
|
42
|
+
"@ckeditor/ckeditor5-media-embed": "^35.2.1",
|
|
43
|
+
"@ckeditor/ckeditor5-paragraph": "^35.2.1",
|
|
44
|
+
"@ckeditor/ckeditor5-table": "^35.2.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=14.0.0",
|
|
@@ -110,7 +110,8 @@
|
|
|
110
110
|
*
|
|
111
111
|
* **Note:** This configuration works only for simple plugins which utilize the
|
|
112
112
|
* {@link module:core/plugin~PluginInterface plugin interface} and have no dependencies. To extend a
|
|
113
|
-
* build with complex features, create a {@glink installation/getting-started/quick-start-other#creating-custom-builds-with-online-builder
|
|
113
|
+
* build with complex features, create a {@glink installation/getting-started/quick-start-other#creating-custom-builds-with-online-builder
|
|
114
|
+
* custom build}.
|
|
114
115
|
*
|
|
115
116
|
* **Note:** Make sure you include the new features in you toolbar configuration. Learn more
|
|
116
117
|
* about the {@glink features/toolbar/toolbar toolbar setup}.
|
|
@@ -119,7 +120,8 @@
|
|
|
119
120
|
*/
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
|
-
* The list of plugins which should not be loaded despite being available in an {@glink installation/getting-started/predefined-builds
|
|
123
|
+
* The list of plugins which should not be loaded despite being available in an {@glink installation/getting-started/predefined-builds
|
|
124
|
+
* editor build}.
|
|
123
125
|
*
|
|
124
126
|
* const config = {
|
|
125
127
|
* removePlugins: [ 'Bold', 'Italic' ]
|
|
@@ -169,11 +171,90 @@
|
|
|
169
171
|
*
|
|
170
172
|
* Line break will work only in the extended format when `shouldNotGroupWhenFull` option is set to `true`.
|
|
171
173
|
*
|
|
172
|
-
*
|
|
174
|
+
* **Note**: To save space in your toolbar you can group several items into a dropdown:
|
|
175
|
+
*
|
|
176
|
+
* toolbar: [
|
|
177
|
+
* {
|
|
178
|
+
* label: 'Basic styles',
|
|
179
|
+
* icon: 'text',
|
|
180
|
+
* items: [ 'bold', 'italic', ... ]
|
|
181
|
+
* },
|
|
182
|
+
* '|',
|
|
183
|
+
* 'undo', 'redo'
|
|
184
|
+
* ]
|
|
185
|
+
*
|
|
186
|
+
* The code above will create a "Basic styles" dropdown with a "text" icon containing "bold" and "italic" buttons.
|
|
187
|
+
* You can customize the look of the dropdown by setting the `withText`, `icon`, and `tooltip` properties:
|
|
188
|
+
*
|
|
189
|
+
* * **Displaying a label**
|
|
190
|
+
*
|
|
191
|
+
* For instance, to hide the icon and to display the label only, you can use the following configuration:
|
|
192
|
+
*
|
|
193
|
+
* {
|
|
194
|
+
* label: 'Basic styles',
|
|
195
|
+
* // Show the textual label of the drop-down. Note that the "icon" property is not configured.
|
|
196
|
+
* withText: true,
|
|
197
|
+
* items: [ 'bold', 'italic', ... ]
|
|
198
|
+
* }
|
|
199
|
+
*
|
|
200
|
+
* * **Selecting an icon**
|
|
201
|
+
*
|
|
202
|
+
* You can use one of the common icons provided by the editor (`'bold'`, `'plus'`, `'text'`, `'importExport'`, `'alignLeft'`,
|
|
203
|
+
* `'paragraph'`, `'threeVerticalDots'`):
|
|
204
|
+
*
|
|
205
|
+
* {
|
|
206
|
+
* label: '...',
|
|
207
|
+
* // A "plus" sign icon works best for content insertion tools.
|
|
208
|
+
* icon: 'plus',
|
|
209
|
+
* items: [ ... ]
|
|
210
|
+
* }
|
|
211
|
+
*
|
|
212
|
+
* If no icon is specified, `'threeVerticalDots'` will be used as a default:
|
|
213
|
+
*
|
|
214
|
+
* // No icon specified, using a default one.
|
|
215
|
+
* {
|
|
216
|
+
* label: 'Default icon',
|
|
217
|
+
* items: [ ... ]
|
|
218
|
+
* }
|
|
219
|
+
*
|
|
220
|
+
* If `icon: false` is configured, no icon will be displayed at all and the text label will show up instead:
|
|
221
|
+
*
|
|
222
|
+
* // This drop-down has no icon. The text label will be displayed instead.
|
|
223
|
+
* {
|
|
224
|
+
* label: 'No icon',
|
|
225
|
+
* icon: false,
|
|
226
|
+
* items: [ ... ]
|
|
227
|
+
* }
|
|
228
|
+
*
|
|
229
|
+
* You can also set a custom icon for the drop-down by passing an SVG string:
|
|
230
|
+
*
|
|
231
|
+
* {
|
|
232
|
+
* label: '...',
|
|
233
|
+
* // If you want your icon to change the color dynamically (e.g. when the dropdown opens), avoid fill="..."
|
|
234
|
+
* // and stroke="..." styling attributes. Use solid shapes and avoid paths with strokes.
|
|
235
|
+
* icon: '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">...</svg>',
|
|
236
|
+
* items: [ ... ]
|
|
237
|
+
* }
|
|
238
|
+
*
|
|
239
|
+
* * **Customizing the tooltip**
|
|
240
|
+
*
|
|
241
|
+
* By default, the tooltip of the button shares its text with the label. You can customize it to better describe your dropdown
|
|
242
|
+
* using the `tooltip` property ({@link module:ui/button/buttonview~ButtonView#tooltip learn more}):
|
|
243
|
+
*
|
|
244
|
+
* {
|
|
245
|
+
* label: 'Drop-down label',
|
|
246
|
+
* tooltip: 'Custom tooltip of the drop-down',
|
|
247
|
+
* icon: '...',
|
|
248
|
+
* items: [ ... ]
|
|
249
|
+
* }
|
|
250
|
+
*
|
|
251
|
+
* * **`toolbar.viewportTopOffset` (deprecated)** – The offset (in pixels) from the top of the viewport used when positioning a
|
|
252
|
+
* sticky toolbar.
|
|
173
253
|
* Useful when a page with which the editor is being integrated has some other sticky or fixed elements
|
|
174
254
|
* (e.g. the top menu). Thanks to setting the toolbar offset the toolbar will not be positioned underneath or above the page's UI.
|
|
175
255
|
*
|
|
176
|
-
* **This property has been deprecated and will be removed in the future versions of CKEditor. Please use
|
|
256
|
+
* **This property has been deprecated and will be removed in the future versions of CKEditor. Please use
|
|
257
|
+
* `{@link module:core/editor/editorconfig~EditorConfig#ui EditorConfig#ui.viewportOffset}` instead.**
|
|
177
258
|
*
|
|
178
259
|
* * **`toolbar.shouldNotGroupWhenFull`** – When set to `true`, the toolbar will stop grouping items
|
|
179
260
|
* and let them wrap to the next line if there is not enough space to display them in a single row.
|
|
@@ -315,27 +396,30 @@
|
|
|
315
396
|
*
|
|
316
397
|
* Options which can be set using the UI config:
|
|
317
398
|
*
|
|
318
|
-
* * **`ui.viewportOffset`** – The offset (in pixels) of the viewport from every direction used when positioning a sticky toolbar
|
|
399
|
+
* * **`ui.viewportOffset`** – The offset (in pixels) of the viewport from every direction used when positioning a sticky toolbar
|
|
400
|
+
* or other absolutely positioned UI elements.
|
|
319
401
|
* Useful when a page with which the editor is being integrated has some other sticky or fixed elements
|
|
320
|
-
* (e.g. the top menu). Thanks to setting the UI viewport offset the toolbar and other contextual balloons will not be positioned
|
|
402
|
+
* (e.g. the top menu). Thanks to setting the UI viewport offset the toolbar and other contextual balloons will not be positioned
|
|
403
|
+
* underneath or above the page's UI.
|
|
321
404
|
*
|
|
322
405
|
* ui: {
|
|
323
406
|
* viewportOffset: { top: 10, right: 10, bottom: 10, left: 10 }
|
|
324
407
|
* }
|
|
325
408
|
*
|
|
326
|
-
* **Note:** If you want to modify the viewport offset in runtime (after editor was created), you can do that by overriding
|
|
409
|
+
* **Note:** If you want to modify the viewport offset in runtime (after editor was created), you can do that by overriding
|
|
410
|
+
* {@link module:core/editor/editorui~EditorUI#viewportOffset `editor.ui.viewportOffset`}.
|
|
327
411
|
*
|
|
328
412
|
* @member {Object} module:core/editor/editorconfig~EditorConfig#ui
|
|
329
413
|
*/
|
|
330
414
|
|
|
331
|
-
|
|
415
|
+
/**
|
|
332
416
|
* Enables updating the source element after the editor destroy.
|
|
333
417
|
*
|
|
334
418
|
* Enabling this option might have some security implications, as the editor doesn't have control over all data
|
|
335
419
|
* in the output.
|
|
336
420
|
*
|
|
337
|
-
* Be careful, especially while using
|
|
338
|
-
* {@glink features/markdown Markdown}, {@glink features/general-html-support General HTML Support} or
|
|
421
|
+
* Be careful, especially while using
|
|
422
|
+
* {@glink features/markdown Markdown}, {@glink features/general-html-support General HTML Support} or
|
|
339
423
|
* {@glink features/html-embed HTML embed} features.
|
|
340
424
|
*
|
|
341
425
|
* @member {Boolean} module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy
|
package/src/index.js
CHANGED
|
@@ -58,14 +58,25 @@ import pilcrow from './../theme/icons/pilcrow.svg';
|
|
|
58
58
|
import quote from './../theme/icons/quote.svg';
|
|
59
59
|
import threeVerticalDots from './../theme/icons/three-vertical-dots.svg';
|
|
60
60
|
|
|
61
|
+
import bold from './../theme/icons/bold.svg';
|
|
62
|
+
import paragraph from './../theme/icons/paragraph.svg';
|
|
63
|
+
import plus from './../theme/icons/plus.svg';
|
|
64
|
+
import text from './../theme/icons/text.svg';
|
|
65
|
+
import importExport from './../theme/icons/importexport.svg';
|
|
66
|
+
|
|
61
67
|
export const icons = {
|
|
68
|
+
bold,
|
|
62
69
|
cancel,
|
|
63
70
|
caption,
|
|
64
71
|
check,
|
|
65
72
|
cog,
|
|
66
73
|
eraser,
|
|
67
|
-
lowVision,
|
|
68
74
|
image,
|
|
75
|
+
lowVision,
|
|
76
|
+
importExport,
|
|
77
|
+
paragraph,
|
|
78
|
+
plus,
|
|
79
|
+
text,
|
|
69
80
|
|
|
70
81
|
alignBottom,
|
|
71
82
|
alignMiddle,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path clip-rule="evenodd" d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path clip-rule="evenodd" d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>
|