Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djhi/meteor-autoform-medium
Medium editor for AutoForm
https://github.com/djhi/meteor-autoform-medium
Last synced: 3 months ago
JSON representation
Medium editor for AutoForm
- Host: GitHub
- URL: https://github.com/djhi/meteor-autoform-medium
- Owner: djhi
- Created: 2015-03-17T11:09:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-02T18:01:22.000Z (over 9 years ago)
- Last Synced: 2023-12-14T18:05:31.328Z (about 1 year ago)
- Language: JavaScript
- Size: 143 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Meteor Autoform Medium Editor
Adds [medium editor](https://github.com/yabwe/medium-editor) for [autoform](https://github.com/aldeed/meteor-autoform).## Setup
1. `meteor add gildaspk:autoform-medium`## Usage
You can apply it directly in your template:```
{{> afFieldInput name='richTextFieldName' type="medium"}}
```You can also specify it at the schema level:
```
MySchema = new SimpleSchema({
richTextFieldName: {
type: String
autoform: {
type: "medium",
mediumOptions: {
// By defaut, we remove the label generated by QuickField or QuickForm as it does not
// play well with the editor. If you have handled this label by yourself and do not
want it to be removed, add this option
keepLabel: true,... other medium editor options here...
},
}
}
});
```