{"id":13773618,"url":"https://github.com/mpowaga/meteor-autoform-summernote","last_synced_at":"2025-05-11T05:35:03.683Z","repository":{"id":23873611,"uuid":"27252419","full_name":"mpowaga/meteor-autoform-summernote","owner":"mpowaga","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-14T16:46:56.000Z","size":16,"stargazers_count":25,"open_issues_count":14,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-06T21:13:13.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/mpowaga/autoform-summernote","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpowaga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-28T05:05:02.000Z","updated_at":"2023-05-03T15:29:58.000Z","dependencies_parsed_at":"2022-08-22T06:30:27.333Z","dependency_job_id":null,"html_url":"https://github.com/mpowaga/meteor-autoform-summernote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpowaga%2Fmeteor-autoform-summernote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpowaga%2Fmeteor-autoform-summernote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpowaga%2Fmeteor-autoform-summernote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpowaga%2Fmeteor-autoform-summernote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpowaga","download_url":"https://codeload.github.com/mpowaga/meteor-autoform-summernote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523688,"owners_count":21921815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:18.046Z","updated_at":"2025-05-11T05:34:58.667Z","avatar_url":"https://github.com/mpowaga.png","language":"JavaScript","funding_links":[],"categories":["Connectors"],"sub_categories":[],"readme":"Summernote for AutoForm\n=======================\n\nAdd WYSIWYG editor to your Meteor app.\n\n## Usage\n\n1) Install `meteor add mpowaga:autoform-summernote`\n\n2) Install bootstrap and fontawesome or skip this if you have them installed\n\n`meteor add twbs:bootstrap`\n\n`meteor add fortawesome:fontawesome`\n\n3) Create schema\n\n```\nvar BookSchema = new SimpleSchema({\n  title: {\n    type: String,\n    label: \"Title\",\n    max: 200\n  },\n  content: {\n    type: String,\n    label: \"Yet another poem\",\n    autoform: {\n      afFieldInput: {\n        type: 'summernote',\n        class: 'editor' // optional\n        settings: // summernote options goes here\n      }\n    }\n  }\n});\n```\n\n4) Attach schema to your collection `Books.attachSchema(BookSchema)`\n\n5) Generate the form with `{{\u003e quickform}}` or `{{#autoform}}`\n\n```\n{{\u003e quickForm collection=\"Books\" type=\"insert\"}}\n```\n\n6) Remember to [sanitize the HTML on the server](https://atmospherejs.com/?q=sanitize)! Summernote doesn't do that, and even if it did, the client could always send HTML containing `\u003cscript\u003e` tags.\n\n## Summernote options\n\nSee all available summernote options [here](http://summernote.org/#/deep-dive#api).\n\n## Summernote callbacks\n\nSee all available summernote calbacks [here](http://summernote.org/#/deep-dive#callbacks).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpowaga%2Fmeteor-autoform-summernote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpowaga%2Fmeteor-autoform-summernote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpowaga%2Fmeteor-autoform-summernote/lists"}