Download the PHP package symbiote/silverstripe-prose-editor without Composer
On this page you can find all versions of the php package symbiote/silverstripe-prose-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symbiote/silverstripe-prose-editor
More information about symbiote/silverstripe-prose-editor
Files in symbiote/silverstripe-prose-editor
Package silverstripe-prose-editor
Short Description A wysiwyg editor based on prose mirror
License BSD-3-Clause
Informations about the package silverstripe-prose-editor
Prose Editor
Provides a wysiwyg editor for HTMLText content fields.
Combined with the frontend authoring module, provides in-place page editing capability
Composer Install
Requirements
- SilverStripe 4.1+
Quick Start
Create and use ProseEditorField where you would otherwise use HtmlEditorField
Documentation
- Markdown-like shortcuts for formatting and creating lists, eg strike, bold, inline code
- Table editing
- Image paste and upload,
- Insert images from the CMS
- Insert page links from the CMS
- Creating new pages using square brackets/round brackets, [{page name}]({url-segment}]. You can leave url-segment empty, and one will be automatically created (requires the frontend-authoring module)
Shortcodes
Add the following to your _config.php if you'd like some additional shortcodes made available
- show_field(field, args) : Displays a field from the 'context' object, typically the currently viewed page.
- field: The field to display; can be in dotted notation for relationship traversal, ie Team.Title
- args: Comma separated list of arguments to pass when resolving the value
- listing(page_id, source_id) : Requires the ListingPage module, lists out content
- page_id: The listing page to render
- source_id: The source of the listing. Pass in 'me' to refer to the current page
- workflow_tasks: Lists out the current user's workflow tasks
- random_item: Gets a random page from the last 50 edited pages
- userform(form_id): Display the content of the userform from ID form_id
Quick Start
Where you'd normally use an HTMLEditorField, use ProseEditorField
instead.
Usage
To enable or disable menu items, use disableMenuItem($name)
and the correlation
enableMenuItem
. Menu items available are
You can also toggle inserting internal CMS links using disableSetting('linkSelector', 'internal')
- License
- Contributing