Giter Club home page Giter Club logo

richtextinputfields's Introduction

EXT:richtextinputfields

About this extension

When working with complex designs often times there is the need for additional, but very limited, formatting options for headlines, sublines and other fields typically presented to the editor as "single input fields". Solutions for these kinds of requirements often involve descriptions for the editors, explaining how to manually add a line-break or format parts of a headline with a bold font style.

While browsing the web we came across this excellent blog post by Daniel Siepmann: https://daniel-siepmann.de/typo3-rte-for-input-fields.html He explains an elegant solution to include a stripped down rich text editor for these kinds of fields. After testing his solution we decided to create a small single-purpose extension to easily add this configuration to multiple instances.

Installation

Install using composer:

composer req b13/richtextinputfields

Usage

Use by adding rich text editors as usual to the fields. This extension brings a very stripped down RTE configuration, but you're free to use your own.

'config' => [
    'type' => 'text',
    'rows' => 1,
    'max' => 255,
    'enableRichtext' => true,
    'richtextConfiguration' => 'minimal-input-field',
],

Set a row value to shrink the height of the rte window to "one line". Add a max value to show a character count and enforce a maximal amount of characters for the field.

Credits

This extension is heavily inspired by Daniel Siepmanns aforementioned blog post and was created by b13 GmbH, Stuttgart for use in our projects.

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.

richtextinputfields's People

Contributors

davidsteeb avatar bmack avatar stegmatze avatar o-ba avatar

Stargazers

Tilo Baller avatar

Watchers

 avatar Achim Fritz avatar  avatar Jochen avatar Daniel Goerz avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.