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

[Feature request]: Font family drop down with custom fonts family #574

Open
ayushLemosys opened this issue Aug 22, 2024 · 1 comment
Open

Comments

@ayushLemosys
Copy link

ayushLemosys commented Aug 22, 2024

Description

Is font family drop down possible in the toolbar.
and also can you create some functionality like create custom button in toolbar configuration.

Problem Statement/Justification

Can we add a drop down for the font family to apply on selected text from editor content and until i change the family that will be continue to next text.
custom button in the tool bar that will help us to make any desirable button in tool bar.

Additional Information

the custom button in the toolbar configuration code something like this

[
      {
        name: 'customButton',
        icon: '🔤', // or use an icon from FontAwesome, etc.
        tooltip: 'Custom Button',
        command: () => this.customAction(),
      }
    ]

Willing to submit a PR?

None

@sibiraj-s
Copy link
Owner

Hi, sorry for the delayed response. You can create custom menu items here. https://sibiraj-s.github.io/ngx-editor/menu/#custom-menu.

Adding font family support as part of editor is difficult to manage, May be i can extend a generic command that accepts a string and set as font family attribute to the element.

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

2 participants