-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prism toolbar #286
Comments
There never was such a plugin. I only remember some pull requests. Any more info? |
The following https://gist.github.com/geoffreymcgill/d118939d1d358d2ed5e8 This sample is adapted from a sample originally posted by Philip Lawrence. Hope this helps. |
@geoffreymcgill Thanks for the link! I was working on something similar. @LeaVerou Will it make sense to have a plugin that depends on third party tools in the official repo? |
Sure, that’s what plugins are for. (of course it’s always better to not depend on 3rd party tools, but we’re not going to reinvent the wheel for no reason — we reinvent the wheel only when it results in shorter/more elegant/otherwise better code :) ). |
I'm definitely in need of that, @vkbansal; was going to look at tackling it myself but probably not for a while. |
@mAAdhaTTah can you tell what features are commonly required in a toolbar? |
I mostly need "copy to clipboard," but leaving it open for hooking into would also be great, as I also will need to add an edit button that will take you to the backend (if possible). |
Is this still only solvable with Flash or does the Clipboard API support this now? |
AFAIK, still only Flash. And ZeroClipboard (used in the above example) is the reference for this. EDIT: This is what Github uses, for example. |
@Golmote @mAAdhaTTah @vkbansal |
@santo007 nice! |
For this particular use-case only copy to clipboard is needed, and surprisingly (at least to me) support for it seems pretty decent. It’s mostly only unsupported on mobile browsers, so maybe a Flash-free solution is reasonable? |
@uranusjr I'm still pretty sure we can't use it to make a "Copy to clipboard" button, but please show me I'm wrong. |
Yes, you’re right, I misread the support description. Sorry for the mess-up. |
Alright, let's recap. For the plugin by Philip Lawrence, see http://dev.misterphilip.com/prism/plugins/toolbar/. |
Hi there,
Does prism still use prism toolbar plugin so that you can easily get the 'copy to clipboard' button to appear? I've been trying but it doesn't seem to work.
Regards
M
The text was updated successfully, but these errors were encountered: