canvas-lms/packages/canvas-rce
Ubuntu bee5c17ea9 update locales with new translations
Change-Id: I9a26613e02868392052a26bc12a9d503949d7c8b
Reviewed-on: https://gerrit.instructure.com/188960
Tested-by: Jenkins
2019-04-10 10:42:52 +00:00
..
bin move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
demo upgrade tinymce to 5.x 2019-04-05 19:17:03 +00:00
github-pages rce: upgrade demo to InstUI 5 & add RTL toggle 2018-05-21 19:18:31 +00:00
jest Add ability to use jest when testing canvas-rce 2019-04-03 22:09:24 +00:00
locales update locales with new translations 2019-04-10 10:42:52 +00:00
scripts Bump canvas-rce to 4.1.0 2019-03-22 17:31:33 +00:00
src Switch plugin to use dropdown menu 2019-04-09 20:47:24 +00:00
test Fix css loading for tinymce 5 2019-04-08 17:17:27 +00:00
.dockerignore move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
.gitignore move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
.npmignore move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
.prettierignore move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
DEVELOPMENT.md Update documentation for developing canvas-rce 2019-03-26 20:05:46 +00:00
Dockerfile fix canvas-rce translations build 2019-04-02 14:23:49 +00:00
LICENSE move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
README.md Update documentation for developing canvas-rce 2019-03-26 20:05:46 +00:00
build.sh move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
docker-compose.yml move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00
jest.config.js Add ability to use jest when testing canvas-rce 2019-04-03 22:09:24 +00:00
mocha-reporter-config.json Add junit reporting for canvas-rce 2018-11-19 21:51:04 +00:00
package.json upgrade tinymce to 5.x 2019-04-05 19:17:03 +00:00
webpack.config.js move canvas-rce to canvas-lms/packages/canvas-rce 2018-05-01 13:46:18 +00:00

README.md

Canvas Rich Content Editor

The Canvas LMS Rich Content Editor extracted in it's own npm package for use across multiple services. This npm module is used in pair with a running canvas-rce-api microservice.

You need a running instance of the canvas-rce-api in order to utilize the canvas-rce npm module, but you do not need that instance in order to do development on canvas-rce. (see docs/development.md)

The first customer of the canvas-rce was the canvas-lms LMS so documentation and references throughout documentation might reflect and assume the use of canvas-lms.

Install and setup

As a published npm module, you can add canvas-rce to your node project by doing the following:

npm install canvas-rce --save

Please reference the canvas-lms use of canvas-rce to get an idea on how to incorporate it into your project. Pay special attention to the RichContentEditor.js and serviceRCELoader.js.

Polyfills

This project makes use of modern JavaScript APIs like Promise, Object.assign, Array.prototype.includes, etc. which are present in modern browsers but may not be present in old browsers like IE 11. In order to not send unnecessarily large and duplicated code bundles to the browser, consumers are expected to have already globally polyfilled those APIs. Canvas already does this but if you need suggestions for how to this in your own app, you can just put this in your html above the script that includes canvas-rce:

<script src="https://cdn.polyfill.io/v2/polyfill.min.js?rum=0"></script>

(See: https://polyfill.io/v2/docs/ for more info)

Development

See DEVELOPMENT.md