# @lblod/ember-rdfa-editor-date-plugin

> RDFa editor plugin to insert semantic dates in the editor

Latest version **0.9.0** (published 2019-07-31) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @lblod/ember-rdfa-editor-date-plugin
pnpm add @lblod/ember-rdfa-editor-date-plugin
yarn add @lblod/ember-rdfa-editor-date-plugin
bun add @lblod/ember-rdfa-editor-date-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2019-07-31 |
| First published | 2018-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.* \|\| >= 10.* |
| Dependencies | 3 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | redpencil.io |
| Maintainers | cecemel, clairelovisa, erikap, madnificent, mehran_naghizadeh, miet, nielsv |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@lblod/ember-rdfa-editor-date-plugin
- Repository: https://github.com/lblod/ember-rdfa-editor-date-plugin
- Homepage: https://github.com/lblod/ember-rdfa-editor-date-plugin#readme
- Issues: https://github.com/lblod/ember-rdfa-editor-date-plugin/issues
- npm.io page: https://npm.io/package/@lblod/ember-rdfa-editor-date-plugin

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.7.3
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^3.0.1
- [@lblod/ember-rdfa-editor-generic-model-plugin-utils](https://npm.io/package/@lblod/ember-rdfa-editor-generic-model-plugin-utils.md) ^0.2.0

## Recent versions

- 0.9.0 (latest) — 2019-07-31
- 0.8.0 — 2019-05-02
- 0.7.8 — 2018-11-30
- 0.7.7 — 2018-10-19
- 0.7.6 — 2018-10-18
- 0.7.5 — 2018-10-16
- 0.7.4 — 2018-10-12
- 0.7.3 — 2018-10-01
- 0.7.2 — 2018-08-07
- 0.7.1 — 2018-04-25
- 0.7.0 — 2018-04-11
- 0.6.2 — 2018-03-20
- 0.6.1 — 2018-03-15
- 0.6.0 — 2018-03-15

## README

# @lblod/ember-rdfa-editor-date-plugin

Plugin to insert semantic dates in an RDFa editor

Compatibility
------------------------------------------------------------------------------

* Ember.js v3.4 or above
* Ember CLI v2.13 or above
* Node.js v8 or above


Installation
------------------------------------------------------------------------------
```
ember install @lblod/ember-rdfa-editor
ember install @lblod/ember-rdfa-editor-date-plugin
```

Configuration
------------------------------------------------------------------------------

The plugin will automatically be added in the `default` and `all` editor profiles in `app/config/editor-profiles.js`. Add the plugin name `rdfa-editor-date-plugin` to other editor profiles if you want to enable the plugin in these profiles, too.


Once the plugin is configured in the appropriate editor profiles in `app/config/editor-profiles.js` it will be automatically be picked up by the rdfa-editor.

There are some defaults set, but you can add other supported date formats in the config of the host application. E.g.
```
APP: {
    '@lblod/ember-rdfa-editor-date-plugin': {
        allowedInputDateFormats: ['DD/MM/YYYY', 'DD-MM-YYYY',  'DD.MM.YYYY'],
        outputDateFormat: 'D MMMM YYYY',
        moment: {
          includeLocales: ['nl']
        }
    }
}
```
Please note, we have some preprocessing of data. You can customize these too through config.
Note: Using custom formats might affect performance, if you don't update the preprocessing formats. See code how.


Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.


License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).

---
_Source: https://npm.io/package/@lblod/ember-rdfa-editor-date-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
