question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Can't disable specific control

See original GitHub issue

What happened?

I removed the controls from the toolbar by doing this:

public toolbar: Toolbar = [['bold', 'italic'], ['underline'], [], [], [], ['link'], [], [], []];

But I can still add an ordered list if I write something like 1.<space>

How can I remove a certain control for good?

Version

v12.3.0

Angular Version

v13.2.6

What browsers are you seeing the problem on?

Firefox, Chrome, Safari

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sibiraj-scommented, Jun 4, 2022

Sorry for the delay, there were some breaking issues around the ecosystem, had to focus there.

You can manually provide the schemas and include only the ones you want. See https://sibiraj-s.github.io/ngx-editor/#/schema for how to provide a schema.

See https://github.com/sibiraj-s/ngx-editor/blob/master/projects/ngx-editor/schema/index.ts for the default schema. All you need to do is to just ignore the ones you don’t need.

0reactions
github-actions[bot]commented, Aug 28, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix for the error: "You can't hide a control that has the focus" in ...
The workaround is simple enough: set the focus to a different control before setting the Enabled or Visible property to False. However, if...
Read more >
I can't disable Home Control in Touch ID & Passcode settings
I can't disable Home Control in Touch ID & Passcode settings. I'm on iOS 10, on iPhone 6. There's a switch that keeps...
Read more >
When I disable a players controls, it works fine. But when I ...
I want to fix the bug where when I respawn, my controls (cant move at all) don't work. What is the issue? When...
Read more >
Allow an app to access controlled folders - Microsoft Support
Under Controlled folder access, select Manage Controlled folder access. Switch the Controlled folder access setting to On or Off.
Read more >
Disabling and enabling individual controls - AWS Security Hub
Choose the control title. Then on the control details page, choose Disable. Enter a reason why you are disabling the control. This can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found