Users and collaborators community Ask a question or leave a feedback about Editor.js https://github.com/codex-team/editor.js Please, write in English. 💝 Support project: http://opencollective.com/editorjs
📦 editorjs/editorjs">@editorjs/editorjs 2.29.0-rc.0 was published
Читать полностью…https://github.com/codex-team/editor.js/discussions/2278
Читать полностью…We will add to it with our current specs, ideas and prototype
Читать полностью…another way is to extend plugins and add own fields in a save() method
Читать полностью…Hi there,
Started to use Editor.js recently and can't say all but great things about it. 🙂
Great set of features and documentation, clean JSON output, etc.
I've tried to find in documentation if there is a way to extend one or more plugins with some metadata for instance the image one with a new attribute called createdBy. Is this possible?
Also what is there a way to add some bullet point before each block like the image that I've sent here?
Thanks for the help!
thanks buddy so in here i just install editorjs itself without any angular lib version it is working but if i try add any editorjs's plugins it shows like that error
Читать полностью…📦 editorjs/editorjs">@editorjs/editorjs 2.28.0-rc.0 was published
Читать полностью…Hello!
Is there any option to disable opening of settings menu when tab key is clicked on the plugin?
i had to add editor.on("myEvent") on the onReady function
Читать полностью…Hi guys, i am trying to emit an event from my plugin.
like this: this.api.events.emit("myEvent", data);
and trying to listen:
let editor: EditorJS = new EditorJS({...})
editor.on("myEvent", (data) => {
console.log("myEvent listen from editor");
});
but it doesnt emit, am i doing it wrong?
Hello. I'd like to know if it is possible to disable the inlineToolbar for one specific contenteditable input inside a tool. Say, you want to add a quote, which has 2 inputs (one for the quote, one for the author) and you want the users to be able to format the quote (add some bold etc) but prevent them from formatting the author. Would that be possible ? I tried reading the code but no success so far...
Читать полностью…📦 editorjs/table">@editorjs/table 2.2.2 was published
Читать полностью…THX!
Another question, can i get blocks without triggering .save()?
How to distinguish changes from API or page editing
Читать полностью…That was actually very helpful as well. We need this feature of adding more metadata to a given block
Читать полностью…Thanks, Peter. I think this is the issue you mentioned: https://github.com/codex-team/editor.js/issues/1720
Читать полностью…OK thanks. To be honest I saw the Block Tune but thought it was more to add more options to the menus and not to just add some metadata to the blocks.
Читать полностью…you can implement a Block Tune to store additional metadata with blocks
Читать полностью…// @ts-ignore
import Underline from "@editorjs/underline";
// @ts-ignore
import List from "@editorjs/list";
// @ts-ignore
import Embed from "@editorjs/embed";
// @ts-ignore
import Paragraph from "@editorjs/paragraph";
Why i can make for example a link inside quote, but i can’t inside for example list, how this defined by block?
What should i modify to allow or disallow markup inside my block?
updated:
onMounted(async () => {
let sett = _object(default_editor_settings).sync(props.settings);
let editor: EditorJS = new EditorJS({
...sett,
holder: page-${props.page_number}
,
data: props.modelValue.blocks,
onChange: (api, event) => {
api.saver.save().then(async (data) => {
data = _object(props.modelValue).sync(data);
emit("update:modelValue", data);
});
},
});
await editor.isReady;
editor.on("myEvent", (data) => {
console.log("onReady isReady", data);
});
});
well, i did it.
like this.. btw i am using vue.
onMounted(async () => {
let sett = _object(default_editor_settings).sync(props.settings);
let editor: EditorJS = new EditorJS({
...sett,
holder: page-${props.page_number}
,
data: props.modelValue.blocks,
onChange: (api, event) => {
api.saver.save().then(async (data) => {
data = _object(props.modelValue).sync(data);
emit("update:modelValue", data);
});
},
onReady: () => {
editor.on("myEvent", (data) => {
console.log("onReady", data);
});
},
});
});
I believe this is a much required feature for complexe tools with many fields
Читать полностью…📦 editorjs/editorjs">@editorjs/editorjs 2.27.2 was published
Читать полностью…? https://editorjs.io/configuration/#editor-modifications-callback
Читать полностью…