项目作者: immanuelfodor

项目描述 :
Shaarli plugin to customize the default height/number of rows of the Description field when editing a link
高级语言: PHP
项目地址: git://github.com/immanuelfodor/shaarli-descriptor.git
创建时间: 2017-12-27T05:34:40Z
项目社区:https://github.com/immanuelfodor/shaarli-descriptor

开源协议:MIT License

下载


Shaarli Descriptor Plugin

Shaarli plugin to customize the default height/number of rows of the Description field when editing a link.

Tested on Shaarli 0.11.1 with the Shaarli-Material theme in desktop and Android Chrome browsers, but it should work with all built-in themes as well. Should be compatible with Shaarli 0.12.0-beta as well which introduced a major internal rewrite (#1511).

Features

  • Set up the number of rows that define the hight of the Description textarea
  • Plugin Administration page integration for easy configuration

Screenshots

Plugin Administration page

After plugin enabled with default DESCRIPTION_ROWS settings:

Shaarli Descriptor admin settings

After plugin enabled and DESCRIPTION_ROWS set to 10:

Shaarli Descriptor edit link page

Installation

The plugin’s folder (shaarli_descriptor) should be placed in the <shaarli>/plugins/ directory.

The directory structure should look like:

  1. └── plugins
  2. └── shaarli_descriptor
  3. ├── shaarli_descriptor.html
  4. ├── shaarli_descriptor.meta
  5. └── shaarli_descriptor.php

To enable the plugin, just check it in the Plugin Administration page (?do=pluginadmin).

You can also add shaarli_descriptor to your list of enabled plugins in data/config.json.php.\
The general.enabled_plugins list should look like then:

  1. "general": {
  2. "enabled_plugins": [
  3. "shaarli_descriptor",
  4. [...]
  5. ],
  6. }

Configuration

Go to the Plugin Administration page, and edit the following settings (with the plugin enabled).

  • DESCRIPTION_ROWS:\
    Hight of the Description textarea. Default: 4\
    Example value: 8\
    Supported values: integer numbers greater than or equal to 1. If not specified or malformed, defaults to 4.

Note: this setting can also be set in data/config.json.php, in the plugins section:

  1. "general": {
  2. "plugins": {
  3. "DESCRIPTION_ROWS": "10",
  4. [...]
  5. },
  6. }

Known issues

None

Recommendation

Shaarli Descriptor works best with my Shaarli Markdown Toolbar plugin, check it out, too! 😉

Contact

Immánuel Fodor\
fodor.it | Linkedin