https://github.com/patternslib/pat-raptor
A Patternslib pattern for Raptor editor (http://raptor-editor.com)
https://github.com/patternslib/pat-raptor
Last synced: about 1 year ago
JSON representation
A Patternslib pattern for Raptor editor (http://raptor-editor.com)
- Host: GitHub
- URL: https://github.com/patternslib/pat-raptor
- Owner: Patternslib
- License: bsd-3-clause
- Created: 2015-03-10T14:02:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T14:39:26.000Z (over 10 years ago)
- Last Synced: 2025-03-01T20:06:05.693Z (over 1 year ago)
- Language: JavaScript
- Size: 943 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# pat-raptor
A [Patternslib](http://patternslib.com) pattern for [Raptor Editor](http://raptor-editor.com)
## The image picker
This pat-raptor-imagepicker.js file registers an image picker plugin for
Raptor.
This plugin uses the inject and modal patterns to render a image picker
panel/modal, from which you can choose images to insert into the editor.
For an example of what the HTMl of this modal should look like, look at
`./examples/panel-image-picker.html`.
## Documentation
Property | Values | Default | Type | Description
---------|-------|---------|------|------------
toolbar-type | `standard`, `fixed`, `floating` | `standard` | Mutually exclusive | Toolbars may either float, be position statically above the editable content field (standard) or snap to the top of the viewport.
toolbar-external | CSS selector | - | CSS selector | CSS selector of the element to which the toolbar should be docked. The element will get wrapped in a `
` and the toolbar will be prepended inside that div.
buttons | alignCenter, alignJustify, alignLeft, alignRight, cancel, classMenu, cleanBlock, clearFormatting, colorMenuBasic, dockToElement, dockToScreen, embed, floatLeft, floatNone, floatRight, fontFamilyMenu, guides, historyRedo, historyUndo, hrCreate, insertFile, languageMenu, linkCreate, linkRemove, listOrdered, listUnordered, logo, save, snippetMenu, specialCharacters, statistics, tableCreate, tableDeleteColumn, tableDeleteRow, tableInsertColumn, tableInsertRow, tagMenu, textBlockQuote, textBold, textItalic, textSizeDecrease, textSizeIncrease, textStrike, textSub, textSuper, textUnderline, viewSource |alignCenter, alignJustify, alignLeft, alignRight, historyRedo, historyUndo, hrCreate, linkCreate, linkRemove, listOrdered, listUnordered, tableCreate, textBold, textItalic, textStrike, textUnderline | Comma separated multi value
config | | `{}` | `JSON` | You can directly configure Raptor by passing in a JSON object here. These values will be passed directly to Raptor. |