|
|
il y a 1 mois | |
|---|---|---|
| .vscode | il y a 4 ans | |
| build | il y a 1 mois | |
| sample | il y a 1 mois | |
| src | il y a 1 mois | |
| tests | il y a 4 ans | |
| .DS_Store | il y a 1 mois | |
| .gitignore | il y a 4 ans | |
| CHANGELOG.md | il y a 4 ans | |
| CONTRIBUTING.md | il y a 7 ans | |
| LICENSE.md | il y a 3 ans | |
| README.md | il y a 1 mois | |
| package-lock.json | il y a 1 mois | |
| package.json | il y a 1 mois | |
| test-export.html | il y a 1 mois | |
| test-export.js | il y a 1 mois | |
| webpack.config.js | il y a 1 mois | |
| yarn.lock | il y a 1 mois |
Кастомная сборка CKEditor 5 версии 44.3.0 с тремя типами редакторов.
Классический редактор с фиксированной панелью инструментов.
import { ClassicEditor } from './build/ckeditor.js';
ClassicEditor
.create(document.querySelector('#editor'))
.then(editor => {
console.log('ClassicEditor готов к использованию', editor);
})
.catch(error => {
console.error('Ошибка инициализации ClassicEditor:', error);
});
Редактор с плавающей панелью инструментов.
import { BalloonEditor } from './build/ckeditor.js';
BalloonEditor
.create(document.querySelector('#editor'))
.then(editor => {
console.log('BalloonEditor готов к использованию', editor);
})
.catch(error => {
console.error('Ошибка инициализации BalloonEditor:', error);
});
Встроенный редактор, который превращает любой элемент в редактируемый.
import { InlineEditor } from './build/ckeditor.js';
InlineEditor
.create(document.querySelector('#editor'))
.then(editor => {
console.log('InlineEditor готов к использованию', editor);
})
.catch(error => {
console.error('Ошибка инициализации InlineEditor:', error);
});
Все редакторы используют одинаковую конфигурацию по умолчанию с поддержкой:
Для пересборки проекта:
npm install
npm run build