Class: Liquid::Simplero::Tags::RichOrPlainTextEditor
- Inherits:
-
RichTextEditor
- Object
- Tag
- RichTextEditor
- Liquid::Simplero::Tags::RichOrPlainTextEditor
- Defined in:
- app/models/liquid/simplero/tags/rich_or_plain_text_editor.rb
Overview
Renders a rich or plain text editor.
{% rich_or_plain_text_editor name type="plain" %}
{% rich_or_plain_text_editor name type="rich" always_blank %}
{% rich_or_plain_text_editor name type="rich_without_attachments" placeholder="value" %}
type
- type of comment text, could have values: 'plain', 'rich'(default), 'rich_without_attachments'.
always_blank
- always initialize as blank rather than reading from the current context for a value.
placeholder
- value for HTML placeholder attribute. Can be Liquid code e.g. {{'foo'|translate}}