Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Ability to choose which HTML tags to use

未关闭
#1,269 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
swift
领域
mobile

调研方向

从 Aztec.TextView 和 getHTML() 导出路径开始,然后跟踪 attributedText 如何转换为 HTML。定义调用方如何选择用于粗体、斜体、下划线和段落输出的标签;完成标准是 getHTML() 支持所请求的标签选择,而不需要手动替换。

由索引模型根据 Issue 内容生成。

描述

[Priority] Low [Type] Enhancement

Is your feature request related to a problem? Please describe.
For my project I need to be able to export the HTML after editing with the TextView selecting which tags I want to use. For example, we need to use <b> for bold text instead of <strong>.

Describe the solution you'd like
Letting the user the possibility of choosing tags to use when getting the html (using getHTML()).

Describe alternatives you've considered
For now I will need to manually replace all tags by what I need. I also don't want to use <p> tags which are added automatically so I will need to replace those accordingly.

Additional context
I'm using the Aztec.TextView in Swift and setting its attributedText with my own attributed string at the beginning. The only html tags we want to use are <b>, <i> and <u>.

Many thanks! 😊

主要语言
Swift
星标
667
派生
153
平均合并
2 天 6 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wordpress-mobile/AztecEditor-iOS 的其他 Issue

查看 wordpress-mobile/AztecEditor-iOS 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。