[go: up one dir, main page]

Page MenuHomePhabricator

Add an image: Image caption input should only allow pasting plain text
Closed, ResolvedPublic

Description

Problem
Copy and pasting article text into the caption input when it contains any links, references or templates leads to unexpected buggy behaviour such as not enabling the user to continue because the pasted text is not being registered in minimal input validation, and causing the device keyboard to be unusable.

Eg 1 with links Eg 2 with reference

Also see relevant related task: https://phabricator.wikimedia.org/T296114

Proposed solution
For iteration 1, we want to only allow pasting plain text (stripped of all formatting) into the caption input field.

Event Timeline

Change 740685 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@master] Add an image: Only allow plain text as caption when pasting

https://gerrit.wikimedia.org/r/740685

Change 740685 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add an image: Only allow plain text as caption when pasting

https://gerrit.wikimedia.org/r/740685

Etonkovidova subscribed.

Checked on testwiki - works as expected.