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.

Button visibility

See original GitHub issue

Hi, I’m using your component on my new web site. Really compliments for your work. Could be nice to have a configuration to show/hide the tool-bar buttons (a boolean with true as default for each of the item of the tool-bar).

At the momet I’m disabling them with the css like (where “blog” is the id of the controller

#strikeThrough-blog,
#subscript-blog,
#superscript-blog,
#customClassSelector-blog {
  display: none;
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
kolkovcommented, Jul 31, 2018

Thanks for your feedback, I’ll have to think whether it will be convenient to implement.

1reaction
Alekslucianocommented, Nov 15, 2018

@empystudio Thanks for recipe. However i cannot hide “insert image” button, because it not have an id. Any ideas?

I am doing this way and is working:

In html file put any id to the component editor, for example “myEditor”
<angular-editor id=“myEditor” </angular-editor>

In Css file put the code below:

:host /deep/ angular-editor#myEditor .angular-editor-button[title=“Insert Image”]{ display: none }

If you want remove others buttons, just copy and paste the code and change the title.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML DOM Style visibility Property - W3Schools
The visibility property sets or returns whether an element should be visible. The visibility property allows the author to show or hide an...
Read more >
HTML button hidden Attribute - Dofactory
The hidden attribute on a button element hides that element. ... Although the button is not visible, its position on the page is...
Read more >
visibility - CSS: Cascading Style Sheets - MDN Web Docs
The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or...
Read more >
Hide or show HTML elements using visibility property in ...
The visibility property specifies that the element is currently visible on the page. ... Click the buttons to show or hide the green...
Read more >
Button visibility - Microsoft Q&A
Button visibility. Hello I am trying to create a button (home) that will make another button visible when clicked, this part of it...
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