plugin:custombuttons
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:custombuttons [2015-08-05 13:55] – [CustomButtons Plugin] 24.79.125.30 | plugin:custombuttons [2023-12-24 14:14] (current) – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
email : conx@xanthopoulos.info | email : conx@xanthopoulos.info | ||
- | type : action, | + | type : action, |
- | lastupdate : 2014-12-10 | + | lastupdate : 2021-02-28 |
- | compatible : Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun | + | compatible : Igor, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Greebo, Hogfather, Jack Jackrum |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : toolbar, button, shortcut | tags : toolbar, button, shortcut | ||
Line 17: | Line 17: | ||
sourcerepo : https:// | sourcerepo : https:// | ||
donationurl: | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
Line 26: | Line 28: | ||
- **Wiki Format blocks:** This should be used when the tags you want to shortcut have an opening and closing part and the user should add something in the middle. ex:< | - **Wiki Format blocks:** This should be used when the tags you want to shortcut have an opening and closing part and the user should add something in the middle. ex:< | ||
- | Note: Icon by Joseph North! | + | Note: Icon by [[http:// |
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
===== Examples ===== | ===== Examples ===== | ||
Line 37: | Line 39: | ||
- | ** Shortcut button for a commonly used URL** | + | ==== Shortcut button for a commonly used URL ==== |
- | {{http:// | + | {{:plugin: |
- | ** Shortcut button for adding a bash script** | + | ==== Shortcut button for adding a bash script |
- | {{http:// | + | {{:plugin: |
- | ** Deleting | + | ==== Deleting |
Just click at a radio button and then click " | Just click at a radio button and then click " | ||
- | {{http:// | + | {{:plugin: |
- | ** Using the buttons** | + | ==== Using the buttons |
After you have successfully inserted some buttons you should be able to see them at the edit toolbar, as shown below. | After you have successfully inserted some buttons you should be able to see them at the edit toolbar, as shown below. | ||
- | {{http:// | + | {{:plugin: |
- | ** Multiline Codes ** | + | ==== Multiline Codes ==== |
If you want to have a shortcut for a common used multiline template (eg. a table) you can use " | If you want to have a shortcut for a common used multiline template (eg. a table) you can use " | ||
Line 70: | Line 72: | ||
</ | </ | ||
- | ===== Bugs ===== | + | ==== Bugs and Feature |
- | + | ||
- | ==== Text-Icons are too small to read in Binky. ==== | + | |
- | + | ||
- | Some dokuwiki releases resize icons to 16x16 size. Just comment the width resizing in / | + | |
- | + | ||
- | <code javascript> | + | |
- | ... | + | |
- | // create the icon and add it to the button | + | |
- | $ico.attr(' | + | |
- | //Disable resizing icons | + | |
- | // $ico.attr(' | + | |
- | | + | |
- | $btn.append($ico); | + | |
- | ... | + | |
- | </ | + | |
- | + | ||
- | If you use a dokuwiki template (like vector for example) including " | + | |
- | + | ||
- | ==== Code field does not insert code ==== | + | |
- | + | ||
- | | + | |
- | + | ||
- | When setting up the custom button to insert code, it does not work when using the button. Instead of inserting code field, it inserts label field. | + | |
- | + | ||
- | | + | |
- | + | ||
- | --- The Guy // | + | |
- | + | ||
- | ==== Conflict with Indexmenu plugin ==== | + | |
- | + | ||
- | Having " | + | |
- | + | ||
- | --- [[user> | + | |
- | + | ||
- | ===== Feature | + | |
- | + | ||
- | ==== Placeholder symbol ==== | + | |
- | + | ||
- | It would be great to have a placeholder symbol for the selected text, e.g "&&" | + | |
- | + | ||
- | - You don't need three fields to define the button command. You type it like "< | + | |
- | - It's possible to use the selected text more than once: '' | + | |
- | + | ||
- | ==== Variable Substitution ==== | + | |
- | It would be great to be able to insert other data as well, eg dates, username etc | + | |
- | + | ||
- | eg I have a button that inserts | + | |
- | + | ||
- | <todo startdate: | + | |
- | + | ||
- | I'd like to be able to have custom button fill in information such as the date, time and username (or any other info calculated from that eg: | + | |
- | + | ||
- | <todo startdate: | + | |
- | + | ||
- | would show as | + | |
- | + | ||
- | <todo startdate: | + | |
- | + | ||
- | + | ||
- | ==== Add button "Edit Selected" | + | |
- | A simple button, next to " | + | |
- | | + | Use [[https://github.com/ |
plugin/custombuttons.1438775757.txt.gz · Last modified: 2015-08-05 13:55 by 24.79.125.30