Skip to content

Mediamorph/scribe-plugin-toolbar

 
 

Repository files navigation

scribe-plugin-toolbar Build Status

A toolbar of buttons and shortcuts for Scribe

This is a fork that intends to solve just specific issues of integrating with MM:

  • Added deamdify to be able to use in commonJS build without global transformation that breaks other libraries.

Installation

bower install scribe-plugin-toolbar

Alternatively, you can access the distribution files through GitHub releases.

Usage Example

scribe-plugin-toolbar is an AMD module:

require(['scribe', 'scribe-plugin-toolbar'], function (Scribe, scribePluginToolbar) {
  var scribeElement = document.querySelector('.scribe');
  // Create an instance of Scribe
  var scribe = new Scribe(scribeElement);

  var toolbarElement = document.querySelector('.toolbar');
  scribe.use(scribePluginToolbar(toolbarElement));
});

For more documentation see the project wiki

Options

Set the shared key to true to enable the shared toolbar functionality.

Development

After cloning the repo:

  • npm install
  • bower install
  • npm run test

If the tests run green then you are good to start developing

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 86.3%
  • HTML 6.9%
  • Shell 6.8%