# tui-font-size-picker

> A plugin allowing users to change font sizes in the TUI Editor

Latest version **1.0.1** (published 2020-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install tui-font-size-picker
pnpm add tui-font-size-picker
yarn add tui-font-size-picker
bun add tui-font-size-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-30 |
| First published | 2020-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 25.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Chow Jia Ying |
| Maintainers | c-likethis123 |
| Keywords | nhn, toast, toastui, toast-ui, editor, plugin, font size |

## Links

- npm: https://www.npmjs.com/package/tui-font-size-picker
- Repository: https://github.com/C-likethis123/tui-font-size-picker
- Issues: https://github.com/C-likethis123/tui-font-size-picker/issues
- npm.io page: https://npm.io/package/tui-font-size-picker

## Dependencies (1)

- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.1.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-30
- 1.0.0 — 2020-12-30

## README

# tui-font-size-picker

A plugin to help users edit font sizes in the [TUI Editor](https://github.com/nhn/tui.editor)

![Plugin](https://github.com/C-likethis123/tui-font-size-picker/blob/master/Font%20Size%20Plugin%20Demo.gif?raw=true)

## Features

Supports editing font sizes in both the Markdown and WYSIWYG modes.

## Installation

Install this package with the package manager of your choice.

### npm

`npm install tui-font-size-picker`

### yarn

`yarn add tui-font-size-picker`

## Usage

### ES Modules

```javascript
import fontSizePicker from 'tui-font-size-picker';
```

### CommonJS

```javascript
const fontSizePicker = require('tui-font-size-picker')
```

### Usage in TUI Editor

To use this in the TUI Editor, it is required to install the [TUI Editor](https://github.com/nhn/tui.editor) or its relevant wrappers (eg React, Vue wrappers) in your project. Then create a new Editor instance and the plugin:

```javascript
const editor = new Editor({
  el: document.querySelector('#editor'),
  previewStyle: 'vertical',
  height: '500px',
  initialEditType: 'markdown',
  initialValue: 'Hello!',
  plugins: [fontSizePicker] // include the font size picker as a plugin
});
```

## Developing

Clone this repository: `git clone https://github.com/C-likethis123/tui-font-size-picker`

Install dependencies: `yarn install` or `npm install`

To run: `yarn serve` or `npm run serve`

Navigate to `localhost:8080/demo/editor.html` to load the demo.

---
_Source: https://npm.io/package/tui-font-size-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
