ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

CKEditor5 Memory Issue with Angular SSR Build

Open vindubeyama opened this issue 1 year ago • 1 comments

📝 Provide detailed reproduction steps (if any)

I have added ckeditor5 and ckditor5-angular packages to my Angular SSR project. I am When I try to build the code, the memory shoots up to 8-9GB.

I am using the following plugins

[ AccessibilityHelp, Alignment, Autoformat, AutoImage, AutoLink, Autosave, BlockQuote, Bold, CaseChange, Code, Essentials, FindAndReplace, FontBackgroundColor, FontColor, FontSize, GeneralHtmlSupport, Heading, Style, HorizontalLine, Indent, IndentBlock, Italic, List, ListProperties, Mention, Notification, PageBreak, Paragraph, PasteFromOffice, PasteFromOfficeEnhanced, PastePlainText, RemoveFormat, SelectAll, SlashCommand, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableOfContents, TableProperties, TableToolbar, Template, TextTransformation, Underline, Undo, WordCount ];

✔️ Expected result

The memory consumption by build process should not be high.

❌ Actual result

The memory consumption by build process is huge. It is directly proportional to the number of plugins used. The more the plugins, the more is the memory consumption

Image

📃 Other details

  • Browser: … N/A
  • OS: … Windows (Also applicable to Docker environment)
  • Angular Version: Angular 15
  • First affected CKEditor version: …43.2.0
  • Installed CKEditor plugins: … [ AccessibilityHelp, Alignment, Autoformat, AutoImage, AutoLink, Autosave, BlockQuote, Bold, CaseChange, Code, Essentials, FindAndReplace, FontBackgroundColor, FontColor, FontSize, GeneralHtmlSupport, Heading, Style, HorizontalLine, Indent, IndentBlock, Italic, List, ListProperties, Mention, Notification, PageBreak, Paragraph, PasteFromOffice, PasteFromOfficeEnhanced, PastePlainText, RemoveFormat, SelectAll, SlashCommand, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableOfContents, TableProperties, TableToolbar, Template, TextTransformation, Underline, Undo, WordCount ];

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

vindubeyama avatar Oct 15 '24 14:10 vindubeyama

Hi @vindubeyama. I don't think it's a problem with CKEditor itself, since its size is not even close to that number. Even loading the entire CKEditor into a memory shouldn't cause this.

Please let us know what the memory usage is without CKEditor, and provide a minimally reproducible example that we can use to see this issue for ourselves.

filipsobol avatar Oct 16 '24 10:10 filipsobol

The issue lacks the feedback we asked for two weeks. Hence, we've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 30 '24 23:10 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Nov 30 '24 23:11 CKEditorBot