Skip to content

docs: add TextEditor ADR#1131

Closed
connorhaugh wants to merge 2 commits into
masterfrom
docs-add-TextEditor-ADR
Closed

docs: add TextEditor ADR#1131
connorhaugh wants to merge 2 commits into
masterfrom
docs-add-TextEditor-ADR

Conversation

@connorhaugh
Copy link
Copy Markdown
Contributor

@connorhaugh connorhaugh commented Mar 9, 2022

This ADR proposes a Paragon TextEditor component as a pass through of Tinymce, an existing WYSIWIG text editor, with standardization. This follows the suggested reverse process for engineers to submit things to pwg

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 9, 2022

✔️ Deploy Preview for paragon-edx ready!

🔨 Explore the source changes: 065ece6

🔍 Inspect the deploy log: https://app.netlify.com/sites/paragon-edx/deploys/622e7cc99a5de7000824b975

😎 Browse the preview: https://deploy-preview-1131--paragon-edx.netlify.app

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 9, 2022

✔️ Deploy Preview for paragon-openedx ready!

🔨 Explore the source changes: 065ece6

🔍 Inspect the deploy log: https://app.netlify.com/sites/paragon-openedx/deploys/622e7cc95da0920008e031e9

😎 Browse the preview: https://deploy-preview-1131--paragon-openedx.netlify.app

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 9, 2022

Codecov Report

Merging #1131 (065ece6) into master (66438b6) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1131      +/-   ##
==========================================
+ Coverage   90.59%   90.64%   +0.04%     
==========================================
  Files         190      191       +1     
  Lines        2989     3013      +24     
  Branches      657      666       +9     
==========================================
+ Hits         2708     2731      +23     
- Misses        268      269       +1     
  Partials       13       13              
Impacted Files Coverage Δ
src/Menu/SelectMenu.jsx 63.49% <0.00%> (ø)
src/Sticky/index.jsx 95.83% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66438b6...065ece6. Read the comment docs.

Proposed
Context
-------
Already, there are two simultaneous ongoing implementations of React-based html editors using tinyMCE. One is the Text Xblock editor, the other is the instructor bulk email tool found in the communications MFE. Already, edX also uses tinyMCE in edx-platform, and hosts its own image of the service there. Presumably, this experience too will be moved from the ball of mud into an independent MFE, and other use cases for text editing will arise. Therefore, it seems obvious to standardize across implementations.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make that three :-) The discussions MFE also uses it for post editing: https://github.com/openedx/frontend-app-discussions/blob/master/src/components/TinyMCEEditor.jsx

Copy link
Copy Markdown
Member

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple nits. Feel free to change the status to "Approved" before you merge.

Comment thread docs/decisions/0017-Text-Editor-Using-TinyMce
Comment thread docs/decisions/0017-Text-Editor-Using-TinyMce
@muselesscreator
Copy link
Copy Markdown

I believe this makes sense in the long term, but for the short-term, the team needs w/rt the tinyMCE installation are going to leave them with a much less configurable option than we would want for Paragon consumption, and the TnL squad will not have the bandwidth to continue pressing on this from a component standardization perspective, so that work will need to get forwarded to the FWG or PWG for future ownership.

@adamstankiewicz adamstankiewicz self-requested a review November 30, 2022 16:09
@adamstankiewicz
Copy link
Copy Markdown
Member

Following up on the previous offline discussions in Frontend/Paragon Working Groups, we decided we'd defer on considering a TextEditor component in Paragon, at least one that consumes TinyMCE (especially needing to support paid plugins).

That said, it may be interesting if Paragon one day supported its own custom text editor component that didn't rely on TinyMCE, but instead something like https://github.com/facebook/lexical.

As a result, I'm inclined to close the PR for now, though we'll definitely be considering whether a text editor makes sense on the long term roadmap for Paragon.

@connorhaugh If you disagree, please feel to re-open the issue 😄 Thanks!

@adamstankiewicz adamstankiewicz deleted the docs-add-TextEditor-ADR branch January 26, 2023 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants