Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-editor-classic

Package Overview
Dependencies
Maintainers
1
Versions
645
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-editor-classic - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 1.0.0-beta.1

theme/classiceditor.css

8

CHANGELOG.md
Changelog
=========
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15)
### Other changes
* Migrated the editor styles to PostCSS. Moved visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([f24f97d](https://github.com/ckeditor/ckeditor5-editor-classic/commit/f24f97d))
* Removed the `.ck-editor-toolbar` class from the toolbar (see [ckeditor/ckeditor5-theme-lark#135](https://github.com/ckeditor/ckeditor5-theme-lark/issues/135)). ([6b4670c](https://github.com/ckeditor/ckeditor5-editor-classic/commit/6b4670c))
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14)

@@ -5,0 +13,0 @@

2

LICENSE.md

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

**Classic Editor** – https://github.com/ckeditor/ckeditor5-editor-classic <br>
Copyright (c) 2003-2017, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -8,0 +8,0 @@ Licensed under the terms of any of the following licenses at your choice:

{
"name": "@ckeditor/ckeditor5-editor-classic",
"version": "1.0.0-alpha.2",
"version": "1.0.0-beta.1",
"description": "Classic editor implementation for CKEditor 5.",

@@ -10,19 +10,19 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-theme-lark": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-ui": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-utils": "^1.0.0-alpha.2"
"@ckeditor/ckeditor5-core": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-engine": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-theme-lark": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-ui": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-utils": "^1.0.0-beta.1"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-enter": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-heading": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-paragraph": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-typing": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-undo": "^1.0.0-alpha.2",
"eslint": "^4.8.0",
"eslint-config-ckeditor5": "^1.0.6",
"@ckeditor/ckeditor5-basic-styles": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-enter": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-heading": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-paragraph": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-typing": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-undo": "^1.0.0-beta.1",
"eslint": "^4.15.0",
"eslint-config-ckeditor5": "^1.0.7",
"husky": "^0.14.3",
"lint-staged": "^4.2.3"
"lint-staged": "^6.0.0"
},

@@ -29,0 +29,0 @@ "engines": {

@@ -7,3 +7,5 @@ CKEditor 5 classic editor implementation

[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-editor-classic.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-editor-classic)
[![Test Coverage](https://codeclimate.com/github/ckeditor/ckeditor5-editor-classic/badges/coverage.svg)](https://codeclimate.com/github/ckeditor/ckeditor5-editor-classic/coverage)
[![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)](https://www.browserstack.com/automate/public-build/d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-editor-classic/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-editor-classic?branch=master)
<br>
[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-editor-classic/status.svg)](https://david-dm.org/ckeditor/ckeditor5-editor-classic)

@@ -10,0 +12,0 @@ [![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-editor-classic/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-editor-classic?type=dev)

/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.

@@ -10,3 +10,6 @@ */

import StandardEditor from '@ckeditor/ckeditor5-core/src/editor/standardeditor';
import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
import DataApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';
import ElementApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin';
import attachToForm from '@ckeditor/ckeditor5-core/src/editor/utils/attachtoform';
import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';

@@ -16,7 +19,7 @@ import ClassicEditorUI from './classiceditorui';

import ElementReplacer from '@ckeditor/ckeditor5-utils/src/elementreplacer';
import getDataFromElement from '@ckeditor/ckeditor5-utils/src/dom/getdatafromelement';
import mix from '@ckeditor/ckeditor5-utils/src/mix';
import '../theme/theme.scss';
/**
* The {@glink builds/guides/overview#Classic-editor classic editor} implementation.
* The {@glink builds/guides/overview#classic-editor classic editor} implementation.
* It uses an inline editable and a sticky toolbar, all enclosed in a boxed UI.

@@ -26,3 +29,3 @@ * See the {@glink examples/builds/classic-editor demo}.

* In order to create a classic editor instance, use the static
* {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`} method.
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method.
*

@@ -33,3 +36,3 @@ * # Classic editor and classic build

* [`@ckeditor/ckeditor5-editor-classic`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic) package)
* but it is also available in the {@glink builds/guides/overview#Classic-editor classic build}.
* but it is also available in the {@glink builds/guides/overview#classic-editor classic build}.
*

@@ -42,7 +45,10 @@ * {@glink builds/guides/overview Builds} are ready-to-use editors with plugins bundled in. When using the editor from

* Read more about initializing the editor from source or as a build in
* {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`}.
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}.
*
* @extends module:core/editor/standardeditor~StandardEditor
* @mixes module:core/editor/utils/dataapimixin~DataApiMixin
* @mixes module:core/editor/utils/elementapimixin~ElementApiMixin
* @implements module:core/editor/editorwithui~EditorWithUI
* @extends module:core/editor/editor~Editor
*/
export default class ClassicEditor extends StandardEditor {
export default class ClassicEditor extends Editor {
/**

@@ -52,3 +58,3 @@ * Creates an instance of the classic editor.

* **Note:** do not use the constructor to create editor instances. Use the static
* {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`} method instead.
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
*

@@ -61,8 +67,4 @@ * @protected

constructor( element, config ) {
super( element, config );
super( config );
this.document.createRoot();
this.data.processor = new HtmlDataProcessor();
this.ui = new ClassicEditorUI( this, new ClassicEditorUIView( this.locale ) );
/**

@@ -75,2 +77,12 @@ * The element replacer instance used to hide the editor element.

this._elementReplacer = new ElementReplacer();
this.element = element;
this.data.processor = new HtmlDataProcessor();
this.model.document.createRoot();
this.ui = new ClassicEditorUI( this, new ClassicEditorUIView( this.locale ) );
attachToForm( this );
}

@@ -86,3 +98,3 @@

destroy() {
this.updateEditorElement();
this.updateElement();
this._elementReplacer.restore();

@@ -146,3 +158,3 @@ this.ui.destroy();

.then( () => editor.editing.view.attachDomRoot( editor.ui.view.editableElement ) )
.then( () => editor.loadDataFromEditorElement() )
.then( () => editor.data.init( getDataFromElement( element ) ) )
.then( () => {

@@ -157,1 +169,4 @@ editor.fire( 'dataReady' );

}
mix( ClassicEditor, DataApiMixin );
mix( ClassicEditor, ElementApiMixin );
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.

@@ -75,5 +75,5 @@ */

// Setup the editable.
const editingRoot = editor.editing.createRoot( 'div' );
const editingRoot = editor.editing.view.document.getRoot();
view.editable.bind( 'isReadOnly' ).to( editingRoot );
view.editable.bind( 'isFocused' ).to( editor.editing.view );
view.editable.bind( 'isFocused' ).to( editor.editing.view.document );
view.editable.name = editingRoot.rootName;

@@ -80,0 +80,0 @@

/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.

@@ -15,2 +15,4 @@ */

import '../theme/classiceditor.css';
/**

@@ -48,8 +50,2 @@ * Classic editor UI view. Uses an inline editable and a sticky toolbar, all

this.toolbar.extendTemplate( {
attributes: {
class: 'ck-editor-toolbar'
}
} );
/**

@@ -56,0 +52,0 @@ * Editable UI view.

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