brandup-pages-ckeditor
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

brandup-pages-ckeditor

�������� �������� ��� BrandUp.Pages.

Using

ContentEditor.create(document.querySelector('#editor'), { language: 'ru' })
		.then( editor => {
			window.editor = editor;
		} )
		.catch( error => {
			console.error( 'There was a problem initializing the editor.', error );
		} );

������������� � TypeScript

import ContentEditor from "brandup-pages-ckeditor";

ContentEditor.create(elem, { placeholder: this.options.placeholder })
	.then(editor => {
		editor.model.document.on('change', () => {
			if (editor.model.document.differ.hasDataChanges())
				this.__isChanged = true;
		});
	});

Readme

Keywords

none

Package Sidebar

Install

npm i brandup-pages-ckeditor

Weekly Downloads

2

Version

1.0.15

License

Apache-2.0

Unpacked Size

5.96 MB

Total Files

6

Last publish

Collaborators

  • dkovyazin