opentiny / opentiny/tiny-editor

✨ [Feature]: 希望能增加编辑源码进行回显的功能

Open
#116 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
535
Forks
71
Avg merge
6h 50m
Merged PRs (30d)
2

Description

What problem does this feature solve

希望在工具栏中增加一个“源码”的按钮,点击这个按钮编辑器变成html源码,可以直接编辑html源码,再次点击“源码”按钮可以进行回显。

初步分析:目前是可以定制工具栏图标的,并且能绑定事件,只需要在事件中获取到html,显示在编辑器中即可;编辑完html再次点击“源码”按钮,可以将html渲染到编辑器中。

What does the proposed API look like

同上

What is your project name

邮件系统

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 reading the editor's toolbar customization and event-handling entry points described in the issue. Verify how to retrieve the current HTML and how edited HTML is rendered back into the editor; done means a “源码” toolbar button toggles between editable HTML source and the rendered editor view.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.