wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Ability to choose which HTML tags to use

Open
#1,269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Priority] Low [Type] Enhancement
Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Description

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! 😊

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 with Aztec.TextView and the getHTML() export path, then trace how the attributedText is converted into HTML. Define how callers would select tags for bold, italic, underline, and paragraph output; done means getHTML() supports the requested tag choices without requiring manual replacement.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.