Grav: Remove copy to clipboard..

Created on 4 Jan 2018  路  3Comments  路  Source: getgrav/grav

Hello.

If I use Markdown, i get only this:
1

but I wan't to have this sometimes:
2

What I have to type in there to get this without the copy to clipboard?
Thanks.

Most helpful comment

The button is only added to blocks longer than 5 characters: https://github.com/getgrav/grav-theme-learn2/blob/develop/js/learn.js#L177

Simply removing the clipboard script also, for some reason, removes the automatic heading links. So I just commented out lines 173 - 210

All 3 comments

This is just a feature of the 'learn2' theme. A bit of javascript and CSS.

Simply remove this line: https://github.com/getgrav/grav-theme-learn2/blob/develop/templates/partials/base.html.twig#L35

@rhukster But for example on https://learn.getgrav.org pages, there are (as you can see in the 2 pictures) there are both of the opinions. One with and one without...

The button is only added to blocks longer than 5 characters: https://github.com/getgrav/grav-theme-learn2/blob/develop/js/learn.js#L177

Simply removing the clipboard script also, for some reason, removes the automatic heading links. So I just commented out lines 173 - 210

Was this page helpful?
0 / 5 - 0 ratings