wordpress-mobile / wordpress-mobile/WordPress-Android

Need a "Clear Formatting" button

Open
#8,391 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Enhancement Aztec Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

A UI "gesture" (button?) that will remove HTML formatting, CSS styles and class names, and line breaks from content copied from another source. (I guess entire lists should be preserved, but maybe an isolated item should be de-itemed?) This would be similar to what WordPress has in its web UI.

Actual behavior

There is no such function in the Android app, as far as I can tell.

Steps to reproduce the behavior

Share a tweet from Twitter's PWA in night mode but also COPY AND PASTE the text of the tweet into the post. You'll see it come out basically white on white.

This also happens when copying and pasting excerpts from news stories (NYT, WaPo, The Atlantic, etc.). Sometimes comes out with unexpected fonts and embedded line breaks.

Tested on [device], Android [version]

Samsung Galaxy S8, Android 8.0
Asus Zenpad 3s 10, Android 6.0

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

No file or test is named. Start at the Android app's post editor and trace how pasted content is handled; reproduce the Twitter and news-copy cases. Done means a discoverable control removes HTML formatting, CSS styles, class names, and unwanted line breaks while preserving intended lists, with behavior verified on the stated Android devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.