Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 - Allow for forms in Text Editor #19

Open
splincode opened this issue Jul 7, 2023 · 1 comment
Open

馃殌 - Allow for forms in Text Editor #19

splincode opened this issue Jul 7, 2023 · 1 comment
Labels
feature New feature or request state: need triage state need triage

Comments

@splincode
Copy link
Member

Description

Which @taiga-ui/* package(s) are relevant/releated to the feature request?

addon-editor

Description

There is often a need to allow for specific elements to be in your text. For example, a user may need to add a button, or an image with specific width style, etc.

ex: Adding a button within text.

  • Button Label
  • Button Url
  • Button Color

ex: Adding an image with specific style:

  • Image Url
  • Image Alt text
  • Image caption
  • Image size

image
image

In the example above, an image form group was defined to show image with a specific width.

Would it be possible to define a form component (that can contain fields for any arbitrary need) that would be displayed within the text-editor, and defining display component that will display the element based on the data provided in the form.

@KhaledGabr
Copy link

Another example from the internet that demonstrates this idea.

This is quite related to the draggable groups example, but what the group display is the Editor is different than what it displays in the HTML output. https://tinkoff.github.io/tui-editor/groups

120351618-521d4b80-c300-11eb-9bc5-62cf149b4763

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request state: need triage state need triage
Projects
None yet
Development

No branches or pull requests

2 participants