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

How to add inline styles to the anchor created by the link button? #1578

Open
ghost opened this issue Jun 9, 2021 · 0 comments
Open

How to add inline styles to the anchor created by the link button? #1578

ghost opened this issue Jun 9, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2021

Description

How to add inline styles to the anchor created by the link button?

Steps to reproduce

buttons: [
{
name: 'anchor',
style: [{ prop: 'color', value: '#FFF' }]
}
]

Expected behavior: [What you expected to happen]

New links created by the editor should have the inline style with the color value.

Actual behavior: [What actually happened]

Anchor tag is created without inline style.

Versions

  • medium-editor: Latest
  • browser: Chrome
  • OS: Windows
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

0 participants