Nested blocks, for extracting links #1879
Replies: 9 comments
-
It will be nice to see this feature added to the editor. Feeling so excited about the possibilities of this editor. Open source rocks!! |
Beta Was this translation helpful? Give feedback.
-
Same here. Looking forward for nested block. |
Beta Was this translation helpful? Give feedback.
-
I think my issue is related to this / could be fixed with the proposed solution:
Yes, its a lot of data, but: The Quote from the base-concepts page:
|
Beta Was this translation helpful? Give feedback.
-
If you just want to process links inside text paragraphs, you can do what I do: Inside your JSON processing function, you can use a regex like so:
Then, you can process the anchor text and the url:
|
Beta Was this translation helpful? Give feedback.
-
Nested blocks in general are not limited to links. One could use nested blocks to embed all sorts of things into the text, without encoding it in (pseudo-)HTML which kind of defeats the purpose of editor.js. I think this issue can be subdivided into several concerns:
Basically, I'm thinking about nesting inline blocks, for things like live-updated counters or code fragments automatically extracted from some repository or other kinds of live data that we want to insert in the middle of the text (as opposed to a separate paragraph). |
Beta Was this translation helpful? Give feedback.
-
Please see my plugin for inline nesting: https://github.com/hata6502/editorjs-inline#readme But... it may output a not-clean data. |
Beta Was this translation helpful? Give feedback.
-
We have some complex JSON that is deeply nested. While there are opportunities for it to be simplified, some things seem to be naturally modeled by nesting blocks. Examples include:
Based on the comments above, I don't think this is possible today. If this is true, is it on the roadmap? Are there other ways to model such "parent-child" relationships? |
Beta Was this translation helpful? Give feedback.
-
Hi, late to the party! @mandolyte I'm also interested in the "deeply nested JSON to represent documents" that are "potentially editable by a human" (for example in editor.js). I'm particularly thinking of 3 projects I have in hands that would benefeit of defining the web page in JSON and templateing it later into HTML while being able to edit the page with editor.js. Those 3 projects I'm currently working in are:
So, questions: To all: Does editor.js now support for "nested blocks"? |
Beta Was this translation helpful? Give feedback.
-
This looks like an amazing tool! We are investigating removing our TinyMCE editor from our CMS and are interested in using your project.
If our editors add links to resources on the web, we would like to be able to identify if these items still exist or if they are redirecting, so we can update/remove the links. Currently, with TinyMCE, this is really difficult.
I love the way the data is presented and would be amazing for us, but I was wondering if you can or plan to have nested blocks? Or if it's already supported. If an editor adds an inline link into a paragraph, is it possible to have this as a nested block?
Currently this is how your editor outputs a paragraph:
Possible future:
Looks like the paragraph tool is a plugin so we would be able to write and share our own version, but would this allow us to create our own custom data? And would this be something you are interested in supporting?
Thanks for your time.
And again this is an amazing project!
Beta Was this translation helpful? Give feedback.
All reactions