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
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
Читать полностью…this is my tune, everything works except data is not passed to the constructor, and the block thats passed to the constructor, only has the id, no .data
Читать полностью…I'm unable to get the block.data in a tune command
Читать полностью…I dont get it, the block object has no data inside the tune
Читать полностью…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/
these are all undefined, except block, but block has no .data property, only .id
Читать полностью…is this the only way? Im going to try it now but this cant be right
Читать полностью…so I would then have to cycle trough it to find the one with the id
Читать полностью…but this gets all the blocks, it wont work, I'm trying to read a block
Читать полностью…