HomePhabricator

Enable Pasting of Text with embedded Links
ff6cdf6d2773Unpublished

Authored by Hwboehm on Apr 2 2019, 12:51 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Enable Pasting of Text with embedded Links

With this Change pasting of plain text with embedded links
into Visual Editor will change in behaviour:

First, http and https links will no more be surrounded with
nowiki tags, but will be displayed as external links.
Secondly, every linebreak will cause a paragraph, so new lines and
double lines will work.

not covered:

  • inserting "this is http://www.example.com" will always make a paragraph;
  • inserting multilines without any links will not be transformed;
  • inserting not plain texts, but copy and paste from browser or msoffice will

be transformed by this change

Cherrypick to REL1_31
ERM#14510

Change-Id: I7d400686a25d7280f46c54b76318441a98cfa219

Details