Addon to simplify the creation of a plugin for https://github.com/lblod/ember-rdfa-editor.
This package assumes you follow these conventions:
- package name: ember-rdfa-editor-your-name-plugin
- package scope: @lblod (to be added to your package name in
package.json
andindex.js
) - no default blueprint has been defined (yet) in your plugin
- Ember.js v2.18 or above
- Ember CLI v2.13 or above
ember addon ember-rdfa-editor-your-name-plugin
emacs # (or your editor of choice)
ember install @lblod/ember-rdfa-editor-plugin-generator
ember g editor-plugin your-name
The following - generated - files should be modified to your liking:
This is a default blueprint which will add your plugin to the configured profile when it's installed
The service providing hints to the editor, the execute task will be called when the content of the editor is updated.
addon/components/editor-plugins/your-name-card.js
and addon/templates/components/editor-plugins/your-name-card.hbs
These components handle the display of hints and perform the necessary actions when they are triggered (eg applying the hint in the editor)
See the Contributing guide for details.
This project is licensed under the MIT License.