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

Button for inline code #27

Open
TWINGSISTER opened this issue Sep 26, 2021 · 2 comments
Open

Button for inline code #27

TWINGSISTER opened this issue Sep 26, 2021 · 2 comments

Comments

@TWINGSISTER
Copy link

I am using Generico atto filter with prettify bundle to insert large blobs of code.
However, for inlines this is not working. Can you please add an example for adding the code style (or tag) within your framework.
Cheers

@PM84
Copy link

PM84 commented Oct 18, 2021

I can clarify that a little bit:

The configuration of the plugin for the "type": "block" works fine in the editor. Multiple classes are found and replaced.

For "type": "inline" the class list is only incompletely detected and replaced. I.e. when applying a style template for the first time it works. But if you want to change the inline style, the classes are only incompletely replaced:

After the initial application:

<p dir="ltr" style="text-align: left;"><span class="attostylestextmarker attostylestextmarker-yellow">Text</span></p>

After a style change:

<p dir="ltr" style="text-align: left;"><span class="attostylestextmarker-green attostylestextmarker-yellow">Text</span></p>

Expected look:

<p dir="ltr" style="text-align: left;"><span class="attostylestextmarker attostylestextmarker-green">Text</span></p>

@abias
Copy link
Member

abias commented Apr 24, 2023

I think this issue is more or less a duplicate of #18 where we have already seen that inline styles with multiple classes are not correctly set / replaced. However, I have to admit that we do not have the time to fix the root of this issue.

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

No branches or pull requests

3 participants