Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (34 loc) · 889 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 889 Bytes

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.