wordpress-mobile / WordPress-Editor-Android

⛔️ [DEPRECATED] A reusable Android rich text editor component.
GNU General Public License v2.0
188 stars 50 forks source link

Use strong and em tags instead of b and i #206

Open aforcier opened 9 years ago

aforcier commented 9 years ago

We're currently limited by execCommand in the visual editor, and can only add new b and i elements currently (though the visual editor processes pre-existing strong and em tags correctly).

However, we might consider converting the b and i to strong and em when switching to HTML mode, and when returning the post content in getContent(). This way posts uploaded from the editor would use strong and em, consistent with the web editor.

Related discussion: https://github.com/wordpress-mobile/WordPress-Editor-iOS/issues/544 https://github.com/wordpress-mobile/WordPress-Android/pull/3018

maxme commented 7 years ago

User comment:

Italics uses deprecated "i" instead of "em", and bold "b" instead of "strong", which aren't supported by all the themes.

rachelmcr commented 7 years ago

From an app review:

Still uses deprecated "i" and "b" for italics and bold.

anderbytes commented 7 years ago

Is that still not implemented?? What a shame

SiobhyB commented 6 years ago

In 219878-h, a user reported that their <strong> tags were automatically converted to <b> tags after the latest update. Possibly related to this issue?