Array for data-hidden-buttons?
See original GitHub issueShouldn’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:
- Created 9 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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"
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…