2.37.9 • Published 10 months ago

@matrix-org/matrix-wysiwyg v2.37.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

React Matrix Rich Text Editor

react-build

The Matrix Rich Text Editor is a React library.

TODO NPM / Usage documentation

The wysiwyg composer API is a react hook.

const { ref, isWysiwygReady, wysiwyg } = useWysiwyg();

return (
    <div>
        <button type="button" onClick={wysiwyg.bold}>
            bold
        </button>
        <div ref={ref} contentEditable={isWysiwygReady} />
    </div>
);

Contribute

Install

Generate WASM bindings

The composer uses a cross-platform rust library. In order to work as intended, the WASM bindings must be generated according to the Matrix Rich Text Editor README.md

Yarn install

Requirements:

  • node >= 8.X
  • yarn 1.X
yarn install

Dev

Folder structure

  • Inside the lib folder, the wysiwyg composer library files are located with useWysiwyg as en entrypoint
  • Inside the src folder, the demo page of the composer is located.

Dev mode

Launch:

yarn dev

A dev server with hot reload is launched on http://localhost:5173/ by default.

For more information, see Vite for more information.

Build

Vite is the Wysiwyg Composer builder.

To build:

yarn build

The builded files are located in the dist folder

Testing

The tests are powered by Vitest.

To run them, different options are available:

  • Classic run
yarn test
  • Watch mode
yarn test:watch
  • Code coverage
yarn coverage

The coverage report is located in the coverage folder.

2.37.9

10 months ago

2.37.7

12 months ago

2.37.6

12 months ago

2.37.8

12 months ago

2.37.5

1 year ago

2.37.4

1 year ago

2.37.3

1 year ago

2.37.2

1 year ago

2.37.1

1 year ago

2.37.0

1 year ago

2.36.0

1 year ago

2.35.0

1 year ago

2.34.0

1 year ago

2.32.0

1 year ago

2.33.0

1 year ago

2.31.0

1 year ago

2.30.0

1 year ago

2.29.0

1 year ago

2.28.0

1 year ago

2.27.0

1 year ago

2.26.0

1 year ago

2.25.0

2 years ago

2.24.0

2 years ago

2.23.0

2 years ago

2.22.0

2 years ago

2.21.0

2 years ago

2.11.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.6.3

2 years ago

2.8.0

2 years ago

2.6.2

2 years ago

2.19.0

2 years ago

2.17.0

2 years ago

2.15.0

2 years ago

2.13.0

2 years ago

2.20.0

2 years ago

2.10.1

2 years ago

2.12.0

2 years ago

2.10.2

2 years ago

2.5.0

2 years ago

2.10.0

2 years ago

2.3.1

2 years ago

2.7.0

2 years ago

2.9.0

2 years ago

2.18.0

2 years ago

2.14.1

2 years ago

2.16.0

2 years ago

2.14.0

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.2

2 years ago

2.1.0

2 years ago

1.2.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.11.0

3 years ago

0.12.0

3 years ago

0.13.0

3 years ago

0.14.0

3 years ago

0.15.0

3 years ago

0.16.0

3 years ago

0.17.0

3 years ago

0.18.0

2 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.5.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago