Skip to content

KCMertens/xonomy

 
 

Repository files navigation

Xonomy

This is a Typescript port of Xonomy. Available on NPM as @elexis-eu/xonomy

Usage:

In a bundled project (rollup, webpack, etc.)

import Xonomy from 'xonomy';

const x = new Xonomy();
// now use x as you would normally.

In browser:

Add the following lines to your html:

<link rel="stylesheet" href="distr/xonomy.css">
<script src="dist/xonomy.umd.js">

This will set window.Xonomy to the Xonomy constructor. Create an instance of the Xonomy editor as follows:

const x = new Xonomy();

The x Xonomy instance can now be used as described in the xonomy manual. Note that the document was written when Xonomy used a global instance, and so uses Xonomy.someFunction() for nearly every function, but in this version you should use the x instance instead.

About

A schema-driven XML editor for the web.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 69.5%
  • CSS 28.4%
  • JavaScript 2.1%