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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Smart Text Block #349

Closed
androb opened this issue Mar 29, 2017 · 7 comments
Closed

Idea: Smart Text Block #349

androb opened this issue Mar 29, 2017 · 7 comments
Labels
[Type] Question Questions about the design or development of the editor.

Comments

@androb
Copy link
Contributor

androb commented Mar 29, 2017

Could we potentially view Text, List, Tables, and Headings as different twists on the same thing? As contained in a "Smart Text Block" (aka TinyMCE with some UI changes).

Underneath the hood, a Smart Text Block would behave slightly differently than the regular blocks but, to the user, it would feel the same. It would look seamless with the Gutenberg experience. For example:

  • the Type Indicator would switch a paragraph to a list inside the Text Block, not create entirely new blocks
  • the toolbars would adjust to the context
  • there would be a sidebar hover indicator
  • elements within the text block would have drag and drop
  • etc.

Copy/paste, undo/redo, and a lot of the simple text interactions (#179) would work much better within the Smart Text Block. There would be more of a type type type experience.

Why?
A Smart Text Block would cope much better with unstructured/legacy content and content imported from elsewhere yet would retain the overall user experience of Gutenberg. It will also work much better on mobile devices once we get to that.

This picks up on the conversations in #335 and #346 . In particular this image from @annaephox

image

@androb androb changed the title Smart Text Block Idea: Smart Text Block Mar 29, 2017
@androb androb mentioned this issue Mar 29, 2017
@androb androb added the [Type] Question Questions about the design or development of the editor. label Mar 29, 2017
@jasmussen
Copy link
Contributor

Linking discussion that happened here also: #335 (comment)

Great ticket.

@Afraithe
Copy link

I like to think of it as "formatting blocks" and "complex blocks". So TinyMCE would handle the formatting blocks such as image, lists, tables. And then we have more complex blocks that usually are a combination of elements, such as image caption, video embed, image gallery etc, that would be handles by the block api (outside in the current context, but via our block api, possible inside of tinymce as well). I think this will make the type type type experience not so different from current solution and easier to implement as well. Now it might still look very "blocky" to the user, wether the block is "inside" or "outside" of tinymce in this case, the look and feel could be the same.

@jasmussen
Copy link
Contributor

So a bunch of exciting things going on at the same time. So as to not duplicate work, let's zoom out a bit.

It looks like #358 overlaps @iseulde work on #347, but there is also overlap between the "Smart Text Block" concept and @aduth work on #335. That's not to say those are bad — it's good that we are thinking in the same directions, we just need a little coordination.

Zooming out: we need a block that is very close to the current editor, but with UI changes (not an overwhelming amount of buttons and a kitchen sink). We need this block to load old posts, and unparsable blocks. This is essentially the block proposed here, and the very same block that @aduth has started work on in #335. A user will be able to use this block the same way the editor works now, but won’t have the advantage of having controls specific to the block.

We've had many names for it. Generic, Fallback, Unknown, Smart Text, HTML Block, Visual Editor Block. For now, let's call this Freeform Block, until such a time as we can find a better name (and I encourage your suggestions).

This block is not the Editable component which is wrapping TinyMCE and is used by several blocks to display editable areas.

Maybe @aduth can bootstrap this block in #335 and open it to improvements?

CC: @youknowriad does this read right to you? 👆

@androb
Copy link
Contributor Author

androb commented Mar 31, 2017

How about "Writer's Block" ... or is that too punny? 🤓

(joking btw)

@jasmussen
Copy link
Contributor

😂

🌟🌟🌟🌟🌟 👏

@jasmussen
Copy link
Contributor

Should we close this in favor of #365?

@jasmussen
Copy link
Contributor

Closing in favor of #365.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

3 participants