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
📦 editorjs/paragraph">@editorjs/paragraph 2.11.4 was published
Читать полностью…
I figured this might be the fix but I can't find how to catch these events for a specific block type. Do you have any ideas?
Читать полностью…
It's just a guess, but you can try to catch these events (arrows, backspace and del btn keydowns) before they're going outside of the block, and stop propagation
Читать полностью…
The Plus Button opens a Toolbox. There is no Tunes, but Blocks
Читать полностью…
https://editorjs.io/configuration/#block-tunes-connection
Читать полностью…
I initiated it like this on paragraph, I assume this is my mistake, there's a way to initiate at top level? outside the tune menu?
Читать полностью…
https://github.com/codex-team/editor.js/blob/next/src/components/block-tunes/block-tune-delete.ts
Читать полностью…
alright, well now I know :) thanks man! this was driving me nuts
Читать полностью…
is there a reason for not having a method in the api to get the data of a block? is it pointless or so? I'm a noob
Читать полностью…
because one expects that the object block passed to the tune to have .data, since it already has an id
Читать полностью…
I saw someone elese was lost with this problem as well on stack overflow
Читать полностью…
it has no .data getter, but it has the ".save()" method
Читать полностью…
I managed to get it working with some help from this comment https://github.com/codex-team/editor.js/issues/1386#issue-723369679
Читать полностью…
Hi, cant solve for react component of EditorJs, who have solution, please help
Читать полностью…
Hello, I'm trying to create a block tool that creates a CortexJS math field but I seem to have issues when typing anything on the math field. For some reason the caret will move out to the block above or below by using any of the arrow keys. The whole block gets destroyed when I backspace even though there's stuff in it. Pressing enter moves the caret to a new block below or there ends up being two carets (math field and editorjs text??)
I tried a few things such as enableLineBreaks and this does not happen if the math field is not created within editorjs (the cursor does not jump out). Here's the code so far: https://hastebin.skyra.pw/lenodirozi.htm does anyone any suggestions?
<Form onFinish={handleSubmit}>
<Form.Item label="" name="">
<Input />
</Form.Item>
<Form.Item label="" name="">
<EditorComponent />
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">
Save
</Button>
</Form.Item>
</Form>
the UI with the + for new paragrapgs and from where you open the tune menu
Читать полностью…
how do you initate it? its showing up on the tune menu, not at top level,
Читать полностью…
might as well ask you something more,
I dont think there's a way to do this via the API, for instance, if I wanted to add a tune to the top level, such as the + and block seetings, like a bin so that I can delete the block from the top level, is there a way to approach this with the API? I couldnt find it
there is the "blocks.getById()" returning a BlockAPI. Then you can call the "save()" on it
Читать полностью…
you don't have to loop over blocks, just call this.block.save()
yep, I used your strategy and it worked, but this makes me cycle trough all the blocks to get the data, wouldnt it be better to have the data passed to the tune?
Читать полностью…
block here is the BlockAPI: https://editorjs.io/blockapi/