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

HTML showing in inline preview #39

Closed
emteknetnz opened this issue Jun 12, 2023 · 4 comments
Closed

HTML showing in inline preview #39

emteknetnz opened this issue Jun 12, 2023 · 4 comments
Assignees
Labels

Comments

@emteknetnz
Copy link
Member

emteknetnz commented Jun 12, 2023

Happens in CMS 5, doesn't happen in CMS 4

image

Replicate steps:

  • Create a new file block
  • Upload a new image
  • Save the page

PRs

@GuySartorelli
Copy link
Member

This is happening because getSummary() is actually being used now, where in CMS 4 it wasn't. The summary should just be a plain-text summary.

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Jul 10, 2023

We should probably remove the FileBlock::getSummaryThumbnail method and SummaryThumbnail.ss template file in the future as they are no longer needed.
Update: If you check Summary Component in silverstripe-elemental you will see that there are no ways how to set HTML Elements and probably any HTML will be redundant there.

@GuySartorelli
Copy link
Member

Bug fixes tagged on fileblock and bannerblock respectively as 3.0.2

@GuySartorelli
Copy link
Member

All PRs merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants