Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@instructure/canvas-rce
Advanced tools
The Canvas LMS Rich Content Editor extracted in it's own npm package for use
across multiple services. In the canvas ecosystem, this npm module is used
in pair with a running canvas-rce-api
microservice.
Some features require a running instance of the canvas-rce-api
,
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
is the canvas-lms
LMS so documentation
and references throughout documentation might reflect and assume the use of
canvas-lms
.
As a published npm module, you can add canvas-rce to your node project by doing the following:
npm install canvas-rce --save
For guidance on how canvas-rce
is used within canvas, 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
.
Outside of canvas, the CanvasRce
React component is your entry point.
Work is ongoing to make the props to CanvasRce
more rational.
Please be patient.
While canvas consumes the es modules build of the rce, Jest tests are run against the commonjs build, so make sure you've built the commonjs assets before running tests:
yarn build:canvas
yarn test:jest
There are still legacy mocha tests run with yarn test:mocha
. yarn test
runs them all.
yarn test:jest:debug path/to/__test__/file.test.js
will break and wait for you to attach a debugger (e.g. chrome://inspect/#devices
).
Similarly, for mocha tests
yarn test:mocha:debug path/to/test/file.test.js
Both those commands may include a --watch
argument to keep the process alive
while you iterate.
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 only supports modern browsers and the rce has not been tested in older browsers like IE. If you need suggestions for how to include polyfills 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)
See DEVELOPMENT.md
FAQs
A component wrapping Canvas's usage of Tinymce
The npm package @instructure/canvas-rce receives a total of 989 weekly downloads. As such, @instructure/canvas-rce popularity was classified as not popular.
We found that @instructure/canvas-rce demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.