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.

Array for data-hidden-buttons?

See original GitHub issue

Shouldn’t this work in the textarea tag?

data-hidden-buttons="['cmdImage','cmdUrl']"

I’m only a hobby developer so it’s possible I’m misunderstanding how to put an array into the tag properly. But I have tried these also:

data-hidden-buttons="[cmdImage,cmdUrl]" data-hidden-buttons="'cmdImage','cmdUrl'" data-hidden-buttons="cmdImage,cmdUrl"

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
nicklaybcommented, Dec 17, 2016

You don’t need to put an array. I searched in the source as I was looking for the same feature and it appears that it splits the value by space " ". So you can just do it that way :

data-hidden-buttons="cmdPreview cmdHeading"

1reaction
phenyllcommented, Jul 23, 2015

In case this Question is still relevant:

you can use data-hidden-buttons=‘[“cmdHeading”,“cmdImage”]’ seen here: http://stackoverflow.com/a/6071653/936304

this is because this plugin is using standard jquery calls to parse the settings. you can find the code here: https://github.com/toopay/bootstrap-markdown/blob/master/js/bootstrap-markdown.js#L36

A link or example in the documentation yould have saved me an hour of searching too…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Array for data-hidden-buttons? · Issue #154 - GitHub
I only want to hide the url and image. But any information on how to put it in an array properly would be...
Read more >
Bootstrap Markdown - file list
Contains enable ( bool ) and icons ( object ) keys. hiddenButtons, mixed, Array or string of button names to be hidden. Default...
Read more >
Laravel-Markdown | A CommonMark wrapper for Laravel - kandi
Implement Laravel-Markdown with how-to, Q&A, fixes, code snippets. kandi ratings - Medium support, No Bugs, No Vulnerabilities.
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