Is it possible to create custom objects in text notes #590
brianvanderburg2
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What I envision is the ability to insert into the text note an object of a custom type, and an attribute/property editor would allow setting fields for that object. Multiple objects would be able to be inserted into the note. A render method would render the HTML view of the object, and when serialized, would be stored as some custom tag along with type and field values.
A frontend JS note would expose itself via a label as an object and export the class for it. The class would identify the type string for the object, fields of the object, a render method etc. The editor would have an insert object button that would expose the known objects. When the mouse is over an existing object, an edit button or panel would appear to be able to edit the object. If a note has an unknown object type such as importing a note from somewhere else but not having the matching frontend JS, a small un-editable block would appear to indicate such.
I looked at the widget classes and it doesn't seem like any of those would work or support multiple instances of the same widget inserted into a note at specific positions in the note nor do I know if the existing text editor would support this.
Maybe something like:
Beta Was this translation helpful? Give feedback.
All reactions