Skip to content

djhi/meteor-autoform-medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor Autoform Medium Editor

Adds medium editor for 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...
            },
        }
    }
});

About

Medium editor for AutoForm

Resources

Stars

Watchers

Forks

Packages

No packages published