Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-html-embed

Package Overview
Dependencies
Maintainers
1
Versions
681
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-html-embed - npm Package Compare versions

Comparing version 24.0.0 to 25.0.0

lang/translations/pt-br.po

4

lang/contexts.json

@@ -6,3 +6,5 @@ {

"Edit source": "A label of a button that switches the HTML embed to the source editing mode.",
"Save changes": "A label of a button that saves the HTML embed content and navigates back to the preview."
"Save changes": "A label of a button that saves the HTML embed content and navigates back to the preview.",
"No preview available": "An information displayed in the HTML embed preview if the content is not previewable.",
"Empty snippet content": "An information displayed in the HTML embed preview if the HTML snippet has no content."
}

@@ -5,3 +5,3 @@ Software License Agreement

**CKEditor 5 HTML embed feature** – https://github.com/ckeditor/ckeditor5-html-embed <br>
Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -8,0 +8,0 @@ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).

{
"name": "@ckeditor/ckeditor5-html-embed",
"version": "24.0.0",
"version": "25.0.0",
"description": "HTML embed feature for CKEditor 5.",

@@ -13,12 +13,13 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^24.0.0",
"@ckeditor/ckeditor5-engine": "^24.0.0",
"@ckeditor/ckeditor5-ui": "^24.0.0",
"@ckeditor/ckeditor5-utils": "^24.0.0",
"@ckeditor/ckeditor5-widget": "^24.0.0"
"@ckeditor/ckeditor5-core": "^25.0.0",
"@ckeditor/ckeditor5-ui": "^25.0.0",
"@ckeditor/ckeditor5-utils": "^25.0.0",
"@ckeditor/ckeditor5-widget": "^25.0.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^24.0.0",
"@ckeditor/ckeditor5-editor-classic": "^24.0.0",
"@ckeditor/ckeditor5-paragraph": "^24.0.0",
"@ckeditor/ckeditor5-basic-styles": "^25.0.0",
"@ckeditor/ckeditor5-editor-classic": "^25.0.0",
"@ckeditor/ckeditor5-engine": "^25.0.0",
"@ckeditor/ckeditor5-paragraph": "^25.0.0",
"@ckeditor/ckeditor5-clipboard": "^25.0.0",
"lodash-es": "^4.17.15",

@@ -25,0 +26,0 @@ "sanitize-html": "^2.1.0"

/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

@@ -13,2 +13,3 @@ */

import HtmlEmbedUI from './htmlembedui';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';

@@ -29,3 +30,3 @@ /**

static get requires() {
return [ HtmlEmbedEditing, HtmlEmbedUI ];
return [ HtmlEmbedEditing, HtmlEmbedUI, Widget ];
}

@@ -32,0 +33,0 @@

/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

@@ -98,3 +98,3 @@ */

// as a view element's custom property while data upcasting.
editor.data.processor.registerRawContentMatcher( {
editor.data.registerRawContentMatcher( {
name: 'div',

@@ -187,2 +187,4 @@ classes: 'raw-html-embed'

editor.editing.view.focus();
} else {
this.cancel();
}

@@ -330,10 +332,24 @@ },

function createPreviewContainer( { domDocument, state, props, editor } ) {
const domPreviewContainer = createElement( domDocument, 'div', {
class: 'raw-html-embed__preview',
const sanitizedOutput = props.sanitizeHtml( state.getRawHtmlValue() );
const placeholderText = state.getRawHtmlValue().length > 0 ?
t( 'No preview available' ) :
t( 'Empty snippet content' );
const domPreviewPlaceholder = createElement( domDocument, 'div', {
class: 'ck ck-reset_all raw-html-embed__preview-placeholder'
}, placeholderText );
const domPreviewContent = createElement( domDocument, 'div', {
class: 'raw-html-embed__preview-content',
dir: editor.locale.contentLanguageDirection
} );
const sanitizeOutput = props.sanitizeHtml( state.getRawHtmlValue() );
domPreviewContainer.innerHTML = sanitizeOutput.html;
domPreviewContent.innerHTML = sanitizedOutput.html;
const domPreviewContainer = createElement( domDocument, 'div', {
class: 'raw-html-embed__preview'
}, [
domPreviewPlaceholder, domPreviewContent
] );
return domPreviewContainer;

@@ -340,0 +356,0 @@ }

/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

@@ -4,0 +4,0 @@ */

/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

@@ -4,0 +4,0 @@ */

/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

@@ -4,0 +4,0 @@ */

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

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