Skip to content

Compare the different technical approaches  #122

@youknowriad

Description

@youknowriad

So far, we have these technical prototypes:

1- https://wordpress.github.io/gutenberg/tinymce-per-block/

  • Multi-TinyMCE
  • Controlled ( state -> render -> event -> state -> rerender )
  • The state is represented as an Object
  • Using Grammar

2- https://wordpress.github.io/gutenberg/tinymce-single/ (Single TinyMCE, uncontrolled, no grammar, HTML parsing)

  • Single Global TinyMCE
  • Uncontrolled ( state -> render -> event -> newState )
  • The state is a simple string containing the whole HTML
  • Not using the Grammar inside the editor but we may be able to add the grammar comments while calling tinymce.getContent

(Feel free to add any other technical prototype here)

I'm creating this issue so we can compare the pros/cons of each approach to help us decide which approach we choose to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] QuestionQuestions about the design or development of the editor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions