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

Embed Code content doesn't use <pre> tag #1266

Open
1 task done
abishekrsrikaanth opened this issue Apr 21, 2023 · 0 comments
Open
1 task done

Embed Code content doesn't use <pre> tag #1266

abishekrsrikaanth opened this issue Apr 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@abishekrsrikaanth
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When adding embedded code content on the admin, the code is not saved inside a <pre> tag, instead it gets saved within a <div class="ql-embed-content" . Below is a screenshot of the body content on the table.

CleanShot 2023-04-21 at 22 21 17@2x

Based on the code review

The <pre> tags are used to highlight the code.

Expected Behavior

The embedded code needs to use the <pre> tag.

Steps To Reproduce

  1. Create a new post
  2. Add a Embedded Code content

Environment

- PHP 8.2
- Laravel 10
- MySQL 8

Anything else?

No response

@abishekrsrikaanth abishekrsrikaanth added the bug Something isn't working label Apr 21, 2023
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

1 participant