Get HTML with text alignment of TextView

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

Nobody has claimed this yet.

Assessment

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

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.

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.

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

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.

More from wordpress-mobile/AztecEditor-iOS

All issues in wordpress-mobile/AztecEditor-iOS

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.