wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Get HTML with text alignment of TextView

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

Nobody has claimed this yet.

Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Description

Hi,
I am trying to create a toolbar with custom button to format text in TextView. When I do text alignment button, I just call textview.textAlignment = .center,...But when get HTML from textview, it have no style for text alignment.
Please give me any ideas for it.

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 reproducing the TextView alignment change with textview.textAlignment and checking the HTML produced afterward. Trace the HTML serialization entry point to determine where alignment is lost; done means centered or otherwise aligned text is represented in the generated HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.