WebbuildersGroup\DeploymentNotes\Forms\MarkdownField
Synopsis
class MarkdownField
extends TextareaField
{
- // members
- private static array $allowed_actions = ;
- private boolean $_imageSupportEnabled = false;
- private string $_uploadDir = 'Uploads';
- private integer $_maxUploadSize = 0;
- protected integer $rows = 30;
- // methods
- public void FieldHolder()
- public {string} markdown_preview()
- public {mixed} image_upload()
- public {string} extraClass()
- public {MarkdownField} setImageUploadEnabled()
- public {bool} getImageUploadEnabled()
- public {MarkdownField} setUploadFolder()
- public {string} getUploadFolder()
- public {MarkdownField} setUploadMaxSize()
- public {int|array} getUploadMaxSize()
Hierarchy
Extends
- SilverStripe\Forms\TextareaField
Members
private
- $_imageSupportEnabled
- $_maxUploadSize
- $_uploadDir
- $allowed_actions
protected
- $rows
Methods
public
- FieldHolder()
- extraClass() — Adds the image-support class to the classes if it is supported
- getImageUploadEnabled() — Gets whether uploading of images is supported or not
- getUploadFolder() — Gets the upload destination folder for images
- getUploadMaxSize() — Gets the upload max file size for images
- image_upload() — Handles uploading of images for the editor
- markdown_preview() — Generates markdown for previewing
- setImageUploadEnabled() — Enables or disables uploading of images
- setUploadFolder() — Sets the upload destination folder for images
- setUploadMaxSize() — Sets the upload max file size for images