Updated ckeditor and use new mono package

This commit is contained in:
Jan Böhmer 2025-08-03 19:46:57 +02:00
parent 9eb8e33e09
commit 74fef78120
14 changed files with 1770 additions and 892 deletions

View file

@ -17,8 +17,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Plugin } from 'ckeditor5/src/core';
import GFMDataProcessor from '@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor';
import {Plugin} from 'ckeditor5';
import {MarkdownGfmDataProcessor} from '@ckeditor/ckeditor5-markdown-gfm';
const ALLOWED_TAGS = [
//Common elements
@ -46,7 +46,7 @@ export default class ExtendedMarkdownInline extends Plugin {
constructor( editor ) {
super( editor );
editor.data.processor = new GFMDataProcessor( editor.data.viewDocument );
editor.data.processor = new MarkdownGfmDataProcessor( editor.data.viewDocument );
for (const tag of ALLOWED_TAGS) {
editor.data.processor.keepHtml(tag);
}