codex_editor | Unsorted

Telegram-канал codex_editor - Editor.js 🤩

269

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

Subscribe to a channel

Editor.js 🤩

📦 editorjs/editorjs">@editorjs/editorjs 2.29.0-rc.0 was published

Читать полностью…

Editor.js 🤩

https://github.com/codex-team/editor.js/discussions/2278

Читать полностью…

Editor.js 🤩

We will add to it with our current specs, ideas and prototype

Читать полностью…

Editor.js 🤩

just like class extendin

Читать полностью…

Editor.js 🤩

another way is to extend plugins and add own fields in a save() method

Читать полностью…

Editor.js 🤩

bullets could be added via CSS

Читать полностью…

Editor.js 🤩

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!

Читать полностью…

Editor.js 🤩

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

Читать полностью…

Editor.js 🤩

📦 editorjs/editorjs">@editorjs/editorjs 2.28.0-rc.0 was published

Читать полностью…

Editor.js 🤩

Hello!
Is there any option to disable opening of settings menu when tab key is clicked on the plugin?

Читать полностью…

Editor.js 🤩

i had to add editor.on("myEvent") on the onReady function

Читать полностью…

Editor.js 🤩

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?

Читать полностью…

Editor.js 🤩

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...

Читать полностью…

Editor.js 🤩

📦 editorjs/table">@editorjs/table 2.2.2 was published

Читать полностью…

Editor.js 🤩

THX!

Another question, can i get blocks without triggering .save()?

Читать полностью…

Editor.js 🤩

How to distinguish changes from API or page editing

Читать полностью…

Editor.js 🤩

That was actually very helpful as well. We need this feature of adding more metadata to a given block

Читать полностью…

Editor.js 🤩

Thanks, Peter. I think this is the issue you mentioned: https://github.com/codex-team/editor.js/issues/1720

Читать полностью…

Editor.js 🤩

OK thanks. How can I extend a plugin?

Читать полностью…

Editor.js 🤩

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.

Читать полностью…

Editor.js 🤩

you can implement a Block Tune to store additional metadata with blocks

Читать полностью…

Editor.js 🤩

// @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";

Читать полностью…

Editor.js 🤩

@Doston1: some errors? Maybe some more infos😄

Читать полностью…

Editor.js 🤩

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?

Читать полностью…

Editor.js 🤩

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);
});
});

Читать полностью…

Editor.js 🤩

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);
});
},
});
});

Читать полностью…

Editor.js 🤩

I believe this is a much required feature for complexe tools with many fields

Читать полностью…

Editor.js 🤩

📦 editorjs/editorjs">@editorjs/editorjs 2.27.2 was published

Читать полностью…

Editor.js 🤩

or how can i disable log message on save()?

Читать полностью…

Editor.js 🤩

? https://editorjs.io/configuration/#editor-modifications-callback

Читать полностью…
Subscribe to a channel