editor-js / inline-code Goto Github PK
View Code? Open in Web Editor NEWInline-Code Tool for Editor.js 2.0
License: MIT License
Inline-Code Tool for Editor.js 2.0
License: MIT License
Write the following text:
This is
inline code
.
Backspace to delete the .
at the end of the line and the caret jumps into the inline code tag. You now cannot add normal text at the end of this line. Most editors which work in a similar way allow you to click outside of the inline code or use the arrow keys to place the caret outside.
This tool was built in JavaScript to be a simplest example of Editor.js Tools API usage. Right now further enhancements requires more modern stack.
We need to migrate this project to TypeScript and provide type declarations. Make sure types for the plugin are available when using it in TypeScript project with Editor.js
sweb@sweb-laptop:/home/us1/projects/editor-js$ npm run build:dev
> @editorjs/[email protected] build:dev
> webpack --mode development --watch
webpack is watching the files…
node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/home/us1/projects/editor-js/node_modules/webpack/lib/util/createHash.js:90:53)
at NormalModule._initBuildHash (/home/us1/projects/editor-js/node_modules/webpack/lib/NormalModule.js:401:16)
at handleParseError (/home/us1/projects/editor-js/node_modules/webpack/lib/NormalModule.js:449:10)
at /home/us1/projects/editor-js/node_modules/webpack/lib/NormalModule.js:481:5
at /home/us1/projects/editor-js/node_modules/webpack/lib/NormalModule.js:342:12
at /home/us1/projects/editor-js/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/home/us1/projects/editor-js/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/home/us1/projects/editor-js/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /home/us1/projects/editor-js/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/home/us1/projects/editor-js/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/us1/projects/editor-js/node_modules/babel-loader/lib/index.js:51:71
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.3.0
I tried different configs but didn't find an option to change tooltip text from “InlineCode” to “Код”.
If there is an option, please help me. If there is not, then please add it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.