Text Area (Multiple Lines)

Overview #

Provides a multi-line text area for data entry, with customizable text editors, spell checking, and text output processing options.

Field Type Parameters: #

  1. Text Editor (optional) – Choose the type of editor to use for the text area. Options include no editor or a rich text editor.
    • (Default. No Editor)
    • rich – (Rich Text Editor)
  2. Spell Checker (optional) – Enable or disable spell checking for this text area field.
    • (Default. No)
    • spellcheck – (Yes)
  3. Maximum length (optional) – Defines the maximum length of the text. Actual limits depend on the selected text type and the Joomla/WordPress default utf8mb4 character set (4-byte UTF-8 encoding).
    • tiny – (Up to 255 Bytes – 63 characters (TINYTEXT). TINYTEXT can store up to 63 Unicode characters i.e 255 bytes. It is suitable for storing short comments, captions, titles etc..)
    • (Default. Up to 64KB – 16,383 characters (TEXT). TEXT can store up to 16,383 Unicode characters i.e 64KB. It is suitable for storing summaries of articles, short notices, captions, etc..)
    • medium – (Up to 16MB – 4.2 million characters (MEDIUMTEXT). MEDIUMTEXT can store up to 4,194,303 Unicode characters i.e 16MB. It is suitable for larger text strings like books, research papers, and code backup..)
    • long – (Up to 4GB – 10.7 billion characters (LONGTEXT). LONGTEXT can store up to 1,073,741,822 Unicode characters i.e 4GB. This is more than enough storage for any long-form text strings. For example, a book that MEDIUMTEXT can’t hold can be stored using LONGTEXT..)

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(Limit Output, Length, Clean Braces, Clean Quotes) }}
  1. Limit Output (optional) – Limit the output of the text field to the specified number of characters or words, or retrieve specific elements like the first image.
    • (Default. Returns as is)
    • chars – (First X characters. Returns the first number of characters after trimming and removing HTML tags..)
    • words – (First X words. Returns the first number of words after trimming and removing HTML tags..)
    • firstimage – (First image. Returns the URL of the first image found in the text..)
  2. Length (optional) – Number of characters or words.
    • Default:
    • Min: 1
    • Max: 1024
  3. Clean Braces (optional) – Remove all braces ({ and }) from the text to prevent content plugins from running.
    • (No – default)
    • true: Yes
  4. Clean Quotes (optional) – Remove all quotation marks from the text.
    • (No – default)
    • true: Yes

Example:

{{ FieldName(50,1,true,true) }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes, Editor Width, Editor Height) }}
  1. CSS Class (optional) – Name or names of CSS class(s).
  2. Attributes (optional) – Optional attributes like: disabled, onclick, onchange etc.
  3. Editor Width (optional) – Editor Width in Pixels or %
  4. Editor Height (optional) – Editor Height in Pixels or %

Example:

{{ FieldName.edit("","",100%,300px) }}


What are your feelings

Leave a Reply

Updated on January 9, 2025