Ember v2 addon which bundles a collection of ember-rdfa-editor plugins related to the LBLOD Project.
-
Ember.js 5.4+ (or 4.12+) 4.12 is no longer tested and not officially supported, but should still work for now.
-
Embroider or ember-auto-import v2
-
Node 18 or above (20+ recommended)
ember install ember-rdfa-editor-lblod-plugins
This addon contains the following editor plugins:
- article-structure-plugin
- besluit-topic-plugin
- besluit-type-plugin
- citation-plugin
- decision-plugin
- import-snippet-plugin
- roadsign-regulation-plugin
- standard-template-plugin
- table-of-contents-plugin
- variable-plugin
- template-comments-plugin
- confidentiality-plugin
- document-title-plugin
- generic-rdfa-variable-plugin
- lmb-plugin
- location-plugin
- lpdc-plugin
- mandatee-table-plugin
- snippet-plugin
- structure-plugin
- worship-plugin
You can configure your editor like this:
You will have 2 anchor points where to put your plugins: top
for a toolbar, and aside
for plugin cards.
Most custom nodespecs defined by plugins define specific CSS classes to allow for them to be styled by a consuming app. These can be augmented by adding custom classes when adding nodespecs to the schema, in the way defined in the ember-rdfa-editor repo.
To use @lblod/ember-rdfa-editor-lblod-plugins
with Embroider some extra Webpack configuration is needed, which you can import like this:
// ember-cli-build.js
// ...
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
// other Embroider options
packagerOptions: {
webpackConfig: require('@lblod/ember-rdfa-editor-lblod-plugins/webpack-config'),
},
extraPublicTrees: [],
});
};
If you already provide some Webpack configuration, you can deep merge that with the config object we provide.
Translations are provided for UI elements using ember-intl.
Currently the only languages supported are English (en-US) and Dutch (nl-BE).
Other languages can be added by copying the contents of the file translations/en-us.yaml
into the relevant language file in your translations
folder and translating all of the strings.
A helper function is provided to assist with finding a reasonable fallback locale, for example providing en-US
translations if en
is requested.
See the test app for example of it's usage.
See the Contributing guide for details.
See the Release guide.
This project is licensed under the MIT License.