StackExchange / StackExchange/Stacks-Editor

Offer a callback for Content changes

Open
#343 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
437
Forks
61
Avg merge
16h 2m
Merged PRs (30d)
8

Description

Hey there, I'm trying to figure out how I can listen to content changes both in the RichTextView and the MarkdownView so that I can use the rendered HTML and update a form field with it. In other frameworks, you can add a callback when instantiating the editor or you can listen to custom events like data:change. I'm struggling to understand how Stacks-Editor allows users to react to state changes really. Would you mind clarifying this part, please?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the RichTextView and MarkdownView entry points and inspect how each exposes or handles content state changes. Determine whether a callback or event mechanism is intended for both views; done means consumers can react to changes and use the rendered HTML, with the behavior clarified or covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.