Thinking out loud: "clean output" for inline tools #1882
Replies: 12 comments
-
Hey @jeremyVignelles ! However, our main concern is Editor.js mostly used for web-based environments so switching to such format will make rendering to webpages more complex. It's likely we will provide an option to choose in which format you'd like to save inline fragments. |
Beta Was this translation helpful? Give feedback.
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'm not familiar enough with all the APIs, but isn't there somewhere a "parsing" method for the inline tools where the plugin says "yup, that's my code", for example, for edition... ? Generating HTML wouldn't be hard, I guess, but transforming back from either a string or a JSON is really different, don't you think? |
Beta Was this translation helpful? Give feedback.
-
Inline tools atm just check if fragment is wrapped with particular tag. |
Beta Was this translation helpful? Give feedback.
-
Anyway, to implement this feature a lot of things should be done. Right now not all content you see has clear representation inside JS model, Inline Tool is just a piece. We are going to move to model-first approach but it requires proper maintainable and extensible design |
Beta Was this translation helpful? Give feedback.
-
I have to admit it was one of my questions too when I started to look into editor.js. Its unusual approach means it's likely not a drop-in replacement for other wysiwyg editors. |
Beta Was this translation helpful? Give feedback.
-
We would like to but we just don't have resources for that (even to review and declare some 3rd party solutions as "official"), so we are relying on community here |
Beta Was this translation helpful? Give feedback.
-
Awesome feature that i trying to find on very continious period. This feature available in editors and sites like yandex or facebook, they use the same aproach when user write stylish text (paragraph block in case of this library) and making the post with media (video\image or any other widget). All what this library need - is option for change output type for stylish blocks like bold or italic and etc. On sites that i listed befor it look like special mark in json where has property tag like "bold_text" and sub options "start_from_letter: 2" and "end_on_letter: 10". Very simple and flex. Easy to validate on backend and render on frontend |
Beta Was this translation helpful? Give feedback.
-
Is it possible to replace inline html with quilljs/delta |
Beta Was this translation helpful? Give feedback.
-
Understand where you're coming from, however I also believe it's not the right serialisation for the modern web. I have chosen to go with Markdown as the authoring format with AST conversions. |
Beta Was this translation helpful? Give feedback.
-
It is an essential feature because it results in better migration for the new web platforms. With this approach, we can quickly render out as we want other than injecting it into the DOM. I'm not saying it should be the default way to do it. Maybe a tool for abstracting it or just an option in the initialization section of the editor. Maybe an even better option is giving it on the saver function as a parameter. |
Beta Was this translation helpful? Give feedback.
-
I've seen this on the main page of editor.js
I fully agree with the concept and I find this a key differenciator from other editors. However, it does seem to be the case for blocks, and not for inlines.
However, such paragraph generates this code:
The fact that there are code tags in the middle of the data would defeat the ability to render it easily and natively on mobile apps and other platforms.
I'd have preferred something like:
Advantages
Drawbacks
What do you think about this ?
Beta Was this translation helpful? Give feedback.
All reactions