mpowaga / meteor-autoform-summernote

https://atmospherejs.com/mpowaga/autoform-summernote
25 stars 18 forks source link

can't set placeholder #18

Closed leizard closed 8 years ago

leizard commented 9 years ago

I can't set place holder for my textarea

    description: {
      type: String,
      label: "Description",
      max: 10000,
      autoform: {
        afFieldInput: SUMMERNOTE_OPTIONS,
        placeholder: "Tell us something unique about yourself"
      }
    }

summernote options:

SUMMERNOTE_OPTIONS = {
  type: 'summernote',
  height: 300,
  minHeight: 300,
  toolbar: [
    ['style', ['style']],
    ['font', ['bold', 'italic', 'underline', 'clear']],
    ['para', ['ul', 'ol']],
    ['insert', ['link','hr']],
    ['misc', ['codeview']]
  ],
  styleWithSpan: false
};

It does not show the placeholder

mpowaga commented 8 years ago

Put placeholder in settings key, e.g.:

description: {
  type: String,
  label: "Description",
  max: 10000,
  autoform: {
    type: 'summernote',
    settings: {
      placeholder: "Tell us something unique about yourself"
    }
  }
}