Skip to content

refactor: make internal editor code more generic#3344

Open
ahtesham-quraish wants to merge 1 commit into
ahtesham/tiptap-refactorfrom
ahtesham/tiptap-front-branch
Open

refactor: make internal editor code more generic#3344
ahtesham-quraish wants to merge 1 commit into
ahtesham/tiptap-refactorfrom
ahtesham/tiptap-front-branch

Conversation

@ahtesham-quraish
Copy link
Copy Markdown
Contributor

What are the relevant tickets?

https://github.com/mitodl/hq/issues/11232

Description (What does it do?)

Step 2: Frontend editor refactor (Second PR)

Make page-components/TiptapEditor/ content-type-agnostic. Success looks like:

  • 1. The editor shell, save/publish/draft UI, image upload, schema validation, learning-resource drawer, and toolbar plumbing all live in one place and accept per-type configuration (schema, initial doc, route prefix, theme, extension list).
  • 2. The current news editor becomes a thin composition of the generic shell + a news config module. No visible behavior changes to /news pages.
  • 3. a new UI under /articles that mirrors /news for now, with minimal themeing changes. More changes to come, but start similar.

Screenshots (if appropriate):

  • Desktop screenshots
  • Mobile width screenshots

How can this be tested?

For testing you need to first take pull of this branch and then run the containers like web and celery and frontend, then you need to visit the following url http://open.odl.local:8062/news/new, you first create the article and check if the request is being made to http://api.open.odl.local:8065/api/v1/website_content/ url, basically, you need to test every corner of the articles CRUD and verify everything looks good.

You should keep in mind that when article is created then celery task is run which sync the article to news, so It should run to and you will be able to see the all the articles using the following url http://open.odl.local:8062/news

Additional Context

@github-actions
Copy link
Copy Markdown

OpenAPI Changes

No changes detected

View full changelog

Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@ahtesham-quraish ahtesham-quraish marked this pull request as ready for review May 14, 2026 12:24
@ahtesham-quraish ahtesham-quraish changed the title refactor: make internal editor code more generic (Second Part) refactor: make internal editor code more generic May 14, 2026
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.

1 participant