taiga-ui icon indicating copy to clipboard operation
taiga-ui copied to clipboard

🚀 - TuiEditorNewComponent to have a possibility to edit the HTML Code as a plain text

Open AILazerka opened this issue 3 years ago • 2 comments

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

addon-editor

Description

For some application use-cases it may be useful to have the possibility to edit the html directly.

The use case that I'm having is the following: There are different account login possibilities exists in the application. Being abstract: we have a possibility to login to account as a plain client and as admin. For the admins we are having the possibility to adjust the code directly in case of some issues. My suggestion is to have a new uiTool to have a new button in the toolbar so it will give a possibility of editing the HTML content directly as the HTML Code.

Right now I'm going to implement the custom tool as to the taiga-ui documentation.

Hoping it will be useful. Thank you in advance!

AILazerka avatar Jan 26 '22 11:01 AILazerka

You can probably make a toggle on your page between tui-textarea and tui-editor components tied to the same control while this is not implemented natively in Editor component.

waterplea avatar Feb 01 '22 08:02 waterplea

Yep @waterplea. That's a kind of what I did as a temporary workaround until the feature will be added 🙂

AILazerka avatar Feb 01 '22 08:02 AILazerka

Close in favor of https://github.com/Tinkoff/tui-editor/issues/18

splincode avatar Jul 07 '23 18:07 splincode