Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-widget

Package Overview
Dependencies
Maintainers
1
Versions
641
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-widget - npm Package Compare versions

Comparing version 34.2.0 to 35.0.0

CHANGELOG.md

4

LICENSE.md

@@ -14,2 +14,6 @@ Software License Agreement

The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
Trademarks

@@ -16,0 +20,0 @@ ----------

45

package.json
{
"name": "@ckeditor/ckeditor5-widget",
"version": "34.2.0",
"version": "35.0.0",
"description": "Widget API for CKEditor 5.",

@@ -14,25 +14,25 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^34.2.0",
"@ckeditor/ckeditor5-engine": "^34.2.0",
"@ckeditor/ckeditor5-enter": "^34.2.0",
"@ckeditor/ckeditor5-ui": "^34.2.0",
"@ckeditor/ckeditor5-utils": "^34.2.0",
"@ckeditor/ckeditor5-typing": "^34.2.0",
"@ckeditor/ckeditor5-core": "^35.0.0",
"@ckeditor/ckeditor5-engine": "^35.0.0",
"@ckeditor/ckeditor5-enter": "^35.0.0",
"@ckeditor/ckeditor5-ui": "^35.0.0",
"@ckeditor/ckeditor5-utils": "^35.0.0",
"@ckeditor/ckeditor5-typing": "^35.0.0",
"lodash-es": "^4.17.15"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^34.2.0",
"@ckeditor/ckeditor5-block-quote": "^34.2.0",
"@ckeditor/ckeditor5-clipboard": "^34.2.0",
"@ckeditor/ckeditor5-editor-balloon": "^34.2.0",
"@ckeditor/ckeditor5-editor-classic": "^34.2.0",
"@ckeditor/ckeditor5-essentials": "^34.2.0",
"@ckeditor/ckeditor5-heading": "^34.2.0",
"@ckeditor/ckeditor5-horizontal-line": "^34.2.0",
"@ckeditor/ckeditor5-image": "^34.2.0",
"@ckeditor/ckeditor5-link": "^34.2.0",
"@ckeditor/ckeditor5-media-embed": "^34.2.0",
"@ckeditor/ckeditor5-paragraph": "^34.2.0",
"@ckeditor/ckeditor5-table": "^34.2.0",
"@ckeditor/ckeditor5-undo": "^34.2.0"
"@ckeditor/ckeditor5-basic-styles": "^35.0.0",
"@ckeditor/ckeditor5-block-quote": "^35.0.0",
"@ckeditor/ckeditor5-clipboard": "^35.0.0",
"@ckeditor/ckeditor5-editor-balloon": "^35.0.0",
"@ckeditor/ckeditor5-editor-classic": "^35.0.0",
"@ckeditor/ckeditor5-essentials": "^35.0.0",
"@ckeditor/ckeditor5-heading": "^35.0.0",
"@ckeditor/ckeditor5-horizontal-line": "^35.0.0",
"@ckeditor/ckeditor5-image": "^35.0.0",
"@ckeditor/ckeditor5-link": "^35.0.0",
"@ckeditor/ckeditor5-media-embed": "^35.0.0",
"@ckeditor/ckeditor5-paragraph": "^35.0.0",
"@ckeditor/ckeditor5-table": "^35.0.0",
"@ckeditor/ckeditor5-undo": "^35.0.0"
},

@@ -56,4 +56,5 @@ "engines": {

"theme",
"ckeditor5-metadata.json"
"ckeditor5-metadata.json",
"CHANGELOG.md"
]
}

@@ -243,3 +243,3 @@ /**

*
* return toWidgetEditable( nested, writer );
* return toWidgetEditable( nested, writer, { label: 'label for editable' } );
* }

@@ -261,7 +261,15 @@ * } );

* @param {module:engine/view/downcastwriter~DowncastWriter} writer
* @param {Object} [options] Additional options.
* @param {String} [options.label] Editable's label used by assistive technologies (e.g. screen readers).
* @returns {module:engine/view/editableelement~EditableElement} Returns the same element that was provided in the `editable` parameter
*/
export function toWidgetEditable( editable, writer ) {
export function toWidgetEditable( editable, writer, options = {} ) {
writer.addClass( [ 'ck-editor__editable', 'ck-editor__nested-editable' ], editable );
writer.setAttribute( 'role', 'textbox', editable );
if ( options.label ) {
writer.setAttribute( 'aria-label', options.label, editable );
}
// Set initial contenteditable value.

@@ -268,0 +276,0 @@ writer.setAttribute( 'contenteditable', editable.isReadOnly ? 'false' : 'true', editable );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc