Closed (fixed)
Project:
CKEditor5 Template
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Aug 2023 at 20:53 UTC
Updated:
4 Aug 2023 at 14:41 UTC
Jump to comment: Most recent
The template js includes a lot of SVGs that are adding a lot of weight to the templates.js file. Also I'm not 100% sure mixing Apache 2 assets and releasing code with GPL v2 is compatible. I know it is compatible with GPL v3, but not sure with v2.
Remove all the SVGs and rely in CSS and another library for the icons.
Comments
Comment #2
dbielke1986 commentedComment #3
vincent.hoehnHi @dagmar, thank you for your feature request!
The size of the file is huge, unfortunately. We were faced with the problem of how to make icons available to users. Through the build process, the icons are included in the file. So if a user wanted to use their icons, they would have to rebuild the file. We didn't want to do that.
Then we came up with the idea of including an icon set. This way, the choice for each user is huge. The advantage of the choice of icons won out over the disadvantage of the file size.
You are right about the license. GPL v2 is not fully compatible with the Apache 2 license!
What would you prefer for a solution? A different icon set with a different/compatible license and fewer icons?
@dbielke1986 what do you think about it?
Comment #4
dagmarWhat about adding the SVG content instead of the path to an icon as part of the json?
Comment #6
vincent.hoehnThank you very much, dagmar. I have implemented the functionality. This allowed us to reduce the size of the template.js to 2.06KB! Can you take a look at the branch 1.0.x-feature/3378579?
Comment #9
dbielke1986 commentedComment #10
dbielke1986 commented