Download the PHP package johannschopplich/kirby-punctuation-section without Composer
On this page you can find all versions of the php package johannschopplich/kirby-punctuation-section. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download johannschopplich/kirby-punctuation-section
More information about johannschopplich/kirby-punctuation-section
Files in johannschopplich/kirby-punctuation-section
Package kirby-punctuation-section
Short Description Insert punctuation marks into your text with a single click
License MIT
Homepage https://github.com/johannschopplich/kirby-punctuation-section#readme
Informations about the package kirby-punctuation-section
Kirby Punctuation Section
This plugin provides a simple, customizable section for your Kirby project from which your customers can quickly add punctuation to their text or writer fields.
By default, clicking one of the punctuation buttons will insert the character at the current cursor position of a text or writer field.
Features
- ♟️ Collect your favourite punctuation characters
- 🪡 Insert characters at the current cursor position
- 🖊️ Optionally paste characters to your clipboard
- 🌐 Fully Translatable
Requirements
[!NOTE] The current version of this plugin requires Kirby 4 or higher. For Kirby 3 support, please use version 2 of Kirby Punctuation Section.
Installation
Composer
Download
Download and copy this repository to /site/plugins/kirby-punctuation-section
.
Usage
To get started, create a sections/punctuation.yml
file in your blueprints folder and add the characters you want to use to the chars
array. A bare minimum section example looks like this:
After that, you can add the section to your blueprint like this:
Clipboard API
Instead of inserting the given character at the current cursor position, you can also copy it to your clipboard by setting the clipboard
option to true
:
[!NOTE] The Clipboard API is only available for secure contexts, it cannot be used on non-HTTPS pages.
Setting a browser flag can allow HTTP pages to be interpreted as secure, which can be useful for local development.
Label Translations & Help Texts
Just like other Kirby built-in sections, the label
and help
fields can be translated.
Take a look at the section blueprint below for a full fledged example:
License
Johann Schopplich