Skip to content

kylepritchard/meteor-autoform-froala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Froala for AutoForm

Add WYSIWYG froala editor to your Meteor app.

###Usage###

  1. Install meteor add donchess:autoform-froala

  2. Create schema

var BookSchema = new SimpleSchema({
  title: {
    type: String,
    label: "Title",
    max: 200
  },
  content: {
    type: String,
    label: "Yet another poem",
    autoform: {
      afFieldInput: {
        type: 'froala'
        // froala options goes here
      }
    }
  }
});
  1. Attach schema to your collection Books.attachSchema(BookSchema)

  2. Generate the form with {{> quickform}} or {{#autoform}}

{{> quickForm collection="Books" type="insert"}}

###Warning###

At now, autoform-froala doesn't reactive, i.e. if other user delete or edit same object froala-field will not be refresh.

###Froala documentation###

See froala documentation here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.5%
  • HTML 12.5%