Skip to content

josehoudini/kirby-writer-textalign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Writer TextAlign Plugin

Adds text alignment buttons (left, center, right) to the Kirby Writer field.

Installation

Download

  1. Run composer require josehoudini/kirby-writer-textalign

or

  1. Download the .zip
  2. Copy the folder into /site/plugins/kirby-writer-textalign

Usage

  1. The plugin automatically adds alignment buttons to all Writer fields:
fields:
  text:
    type: writer
    marks:
      - align-left
      - align-center
      - align-right
  1. Define your css classes:
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

About

Adds text alignment marks to the Kirby Writer field

Resources

Stars

Watchers

Forks

Packages

No packages published