Open yhatt opened 1 year ago
Hello @yhatt , would you have any ETA when this will be available?
Due to the high level of difficulty in implementation, it is currently impossible to make clear ETA.
Regarding this component, jsx-slack wants to provide an experience similar to that of the existing HTML-like representation as follows:
<Modal title="modal">
<RichTextInput label="Rich text" name="richtext" required>
<p>
Hello, <b><code><RichTextInput></code></b>, <i>with <b>rich_text</b>!</i>
</p>
<pre>{preformattedText}</pre>
<strong>Issues:</strong>
<ul>
<li>
<b>#299</b>: <a href="https://github.com/yhatt/jsx-slack/issues/299"><code><RichText></code> block component</a>
</li>
<li>
<b>#300</b>: <a href="https://github.com/yhatt/jsx-slack/issues/300"><code><RichTextInput></code> input component</a>
<ul>
<li>It depends on implementation of <code><RichText></code> block component.
</ul>
</li>
</ul>
</RichTextInput>
</Modal>
It depends on "HTML to rich_text block" conversion (by #299), which is entirely different from the existing "HTML to mrkdwn format" conversion. This requires creating "completely new" JSX parser and renderer for rich_text.
https://api.slack.com/reference/block-kit/block-elements#rich_text_input
It's similar to
<Textarea>
, but can style text with WYSIWYG editor.