1.0.15 • Published 9 months ago

brandup-pages-ckeditor v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

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;
		});
	});