Files
Mergely/examples/README.md
2021-04-29 21:20:53 +01:00

927 B

Mergely examples

To run these examples, you need to run:

$ npm run build
$ npm start

This runs Mergely in a hot dev-server for development. However, only the main example is hot-reloaded when mergely is changed. The others require a rebuild.

Main example

http://localhost:8080

Shows basic functionality.

Ajax example

http://localhost:8080/examples/ajax.html

Who still says "ajax" these days? Anyway, this example demonstrates how to load your left-hand and right-hand sources from external URL, and also how to skin your own editor, and provide drop-file functionality.

Simple example

This example demonstrates how to load your left-hand and right-hand sources from static text.

http://localhost:8080/examples/simple.html

Size example

This example demonstrates how to size your editors, and also how to have multiple editors on the same page.

http://localhost:8080/examples/size.html