EasyCorp / EasyCorp/EasyAdminBundle

Improve the way TextEditor field contents are displayed in detail page

Open
#6,675 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature priority: important
Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
11

Description

TextEditor field creates HTML content because it allows to use paragraphs, bold text, links, etc.

In detail page, we display the escaped HTML contents for security reasons. But, in many cases, you want to display the rendered HTML contents. This is fine because contents were created by employees, not end users.

Also, we should add an option to display the full contents without an scroll bar. By default, we set a max-height to not break the page design when the content is very long.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the TextEditor field's detail-page rendering and inspect how HTML is currently escaped and how the default max-height scrollbar is applied. Done means trusted contents can be rendered as HTML and the detail display offers an option to show the full contents without a scrollbar.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.