Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TO BE REPORTED IN 2.0.X] Limit Individual Image Size in TinyMCE Editors #659

Open
CharlesGrimont opened this issue Dec 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@CharlesGrimont
Copy link
Member

  • Each image in TinyMCE Editors should be limited in size (1000ko).
    • A symbol should allow to override default value (C8Oforms.max_tiny_img_size)
  • Each time a TinyMCE Editor will be opened, image will be checked, and removed if they now exceed limit size.
  • In case exceeding limit size, images will be removed, and an error toast will be displayed.
    • default message: The image you want to insert is too large ({{size}}kb max). You can insert a link to an image using the menu insert => Media..
    • A symbol should allow to personalise message (C8Oforms.max_tiny_img_size_msg)
  • Optionally, in case of upload of an accepted image size, a message should optionally be displayed if the following symbol exists.
    • (C8Oforms.max_tiny_warn_msg)
@CharlesGrimont CharlesGrimont added the enhancement New feature or request label Dec 7, 2023
@CharlesGrimont CharlesGrimont self-assigned this Dec 7, 2023
CharlesGrimont added a commit that referenced this issue Dec 7, 2023
CharlesGrimont added a commit that referenced this issue Dec 7, 2023
CharlesGrimont added a commit that referenced this issue Dec 7, 2023
CharlesGrimont added a commit that referenced this issue Dec 7, 2023
@CharlesGrimont CharlesGrimont added this to the 2.0.0 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
-