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

Add Mark for Inline Code in Block Editor #31254

Open
jdcmsd opened this issue Jan 28, 2025 · 1 comment
Open

Add Mark for Inline Code in Block Editor #31254

jdcmsd opened this issue Jan 28, 2025 · 1 comment

Comments

@jdcmsd
Copy link
Contributor

jdcmsd commented Jan 28, 2025

User Story

As a user, I want to be able to include code snippets inline with paragraph/list/etc text in the Block Editor. We've got a code block, but things can get awkward when we're just trying to apply monospace/other code stylings to a single variable name or similar within otherwise normal text.

It is possible for a dotCMS user to create a custom mark to serve this role, but I think it would be even better to include inline code as a standard/default Block Editor mark.

Acceptance Criteria

  • Add code mark for non-code-block text
  • Add button to bubble menu to apply code mark

Proposed Objective

User Experience

Proposed Priority

Priority 3 - Average

@rjvelazco
Copy link
Contributor

We use Tiptap for Block Editor, maybe we can include this extension: https://tiptap.dev/docs/examples/advanced/syntax-highlighting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

2 participants