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

[bug]: issue description_html contains Tailwind classes #6395

Open
1 task done
garraflavatra opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

[bug]: issue description_html contains Tailwind classes #6395

garraflavatra opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
🐛bug Something isn't working

Comments

@garraflavatra
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I would expect the description_html field in the issues and intake API endpoints to be plain HTML, so that it can easily be integrated into other apps (without interfering with their hypothetical Tailwind styling or else without containing lots of meaningless classes). Reversely, I would like to be able to create new issues without having to worry about adding these class names so that it is rendered correctly in the Plane dashboard. Would it be possible to provide this styling from outside the rich text editor?

(Thanks for building and maintaining Plane; it's very useful! 👍)

Steps to reproduce

Make a request to /api/workspaces/21insure/projects/123/issues/123/ and see the classes it returns:

"description_html": "<p class=\"editor-paragraph-block\">E.g. in the person details step of the sales funnel:</p><ol class=\"list-decimal pl-7 space-y-2 tight\" data-tight=\"true\"><li class=\"not-prose space-y-2\"><p class=\"editor-paragraph-block\">Enter invalid password (e.g. <code class=\"rounded bg-custom-background-80 px-[6px] py-[1.5px] font-mono font-medium text-orange-500 border-[0.5px] border-custom-border-200\" spellcheck=\"false\">test</code>)</p></li><li class=\"not-prose space-y-2\"><p class=\"editor-paragraph-block\">Click Next. An \"invalid password\" message shows up </p></li><li class=\"not-prose space-y-2\"><p class=\"editor-paragraph-block\">Enter a valid password (e.g. <code class=\"rounded bg-custom-background-80 px-[6px] py-[1.5px] font-mono font-medium text-orange-500 border-[0.5px] border-custom-border-200\" spellcheck=\"false\">KOPwwnefk#123</code>)</p></li><li class=\"not-prose space-y-2\"><p class=\"editor-paragraph-block\">Click Next again. It will again report that an invalid password was provided, which wasn't the case the second time.</p></li></ol>"

Environment

Production

Browser

None

Variant

Self-hosted

Version

v0.24.1

@garraflavatra garraflavatra added the 🐛bug Something isn't working label Jan 14, 2025
@pushya22 pushya22 assigned aaryan610 and Palanikannan1437 and unassigned vihar and pushya22 Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants