2.0.1 • Published 2 years ago

@poool/oak-addon-richtext-field v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

GitHub npm CI codecov

Content

New field type:

  • richtext: Allows to use rich text editing capabilities (bold, italic, font size, color, ...)

Installation

yarn add @poool/oak @poool/oak-addon-richtext-field

Usage

import { render } from '@poool/oak';
import richTextField from '@poool/oak-addon-richtext-field';

render(document.getElementById('app'), {
  addons: [richTextField],
  overrides: [{
    type: 'component',
    components: ['title', 'text', 'button', /* ... */],
    fields: [{
      key: 'content',
      type: 'richtext',
    }],
  }]
  /* ... */
});

Don't forget to import styles, for example using style-loader and webpack:

import '@poool/oak-addon-richtext-field/dist/oak-addon-richtext-field.min.css';

Or import them directly inside your own styles using less, sass or stylus:

@import "@poool/oak-addon-richtext-field/dist/oak-addon-richtext-field.min.css";

Translations

Available languages:

  • English (default)
  • French

To import translations and replace text with translations, use the texts setting:

import { render, localeFr } from '@poool/oak';
import richTextField, { localeFr as richTextLocaleFr } from '@poool/oak-addon-richtext-field';
import { mergeDeep } from '@poool/junipero-utils';

render(document.getElementById('app'), {
  addons: [richTextField],
  texts: mergeDeep({}, localeFr, richTextLocaleFr),
  /* ... */
});

Contributing

npm.io

Please check the CONTRIBUTING.md doc for contribution guidelines.

License

This software is licensed under MIT.

2.0.1

2 years ago

2.0.0-alpha.11

2 years ago

2.0.0-alpha.7

2 years ago

2.0.0-alpha.8

2 years ago

2.0.0-alpha.9

2 years ago

2.0.0-alpha.10

2 years ago

2.0.0-alpha.5

2 years ago

2.0.0-alpha.6

2 years ago

2.0.0-alpha.3

3 years ago

2.0.0-alpha.4

3 years ago

2.0.0-alpha.0

3 years ago

2.0.0-alpha.1

3 years ago

2.0.0-alpha.2

3 years ago

1.4.0-alpha.0

3 years ago

1.4.0-alpha.1

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.2.0

3 years ago

1.2.3

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.1.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc.22

3 years ago

1.0.0-rc.20

3 years ago

1.0.0-rc.21

3 years ago

1.0.0-rc.17

4 years ago

1.0.0-rc.16

4 years ago

1.0.0-rc.19

4 years ago

1.0.0-rc.13

4 years ago

1.0.0-rc.12

4 years ago

1.0.0-rc.15

4 years ago

1.0.0-rc.14

4 years ago

1.0.0-rc.11

4 years ago

1.0.0-rc.10

4 years ago

1.0.0-rc.8

4 years ago

1.0.0-rc.7

4 years ago

1.0.0-rc.5

4 years ago

1.0.0-rc.6

4 years ago

1.0.0-rc.4

4 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.2

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc.0

4 years ago

1.0.0-beta.15

4 years ago