Page MenuHomePhabricator

D7336.id16519.diff
No OneTemporary

D7336.id16519.diff

Index: src/__celerity_resource_map__.php
===================================================================
--- src/__celerity_resource_map__.php
+++ src/__celerity_resource_map__.php
@@ -2147,7 +2147,7 @@
),
'javelin-behavior-phabricator-remarkup-assist' =>
array(
- 'uri' => '/res/1d8dab1f/rsrc/js/core/behavior-phabricator-remarkup-assist.js',
+ 'uri' => '/res/70502326/rsrc/js/core/behavior-phabricator-remarkup-assist.js',
'type' => 'js',
'requires' =>
array(
@@ -4325,7 +4325,7 @@
'uri' => '/res/pkg/a4e76ef8/core.pkg.css',
'type' => 'css',
),
- '6041c6c8' =>
+ '50b52ef7' =>
array(
'name' => 'core.pkg.js',
'symbols' =>
@@ -4370,7 +4370,7 @@
37 => 'javelin-color',
38 => 'javelin-fx',
),
- 'uri' => '/res/pkg/6041c6c8/core.pkg.js',
+ 'uri' => '/res/pkg/50b52ef7/core.pkg.js',
'type' => 'js',
),
'4ccfeb47' =>
@@ -4538,16 +4538,16 @@
'diffusion-icons-css' => '270f4eb4',
'global-drag-and-drop-css' => 'a4e76ef8',
'inline-comment-summary-css' => '7cd7e387',
- 'javelin-aphlict' => '6041c6c8',
+ 'javelin-aphlict' => '50b52ef7',
'javelin-behavior' => '3e3be199',
- 'javelin-behavior-aphlict-dropdown' => '6041c6c8',
- 'javelin-behavior-aphlict-listen' => '6041c6c8',
- 'javelin-behavior-aphront-basic-tokenizer' => '6041c6c8',
+ 'javelin-behavior-aphlict-dropdown' => '50b52ef7',
+ 'javelin-behavior-aphlict-listen' => '50b52ef7',
+ 'javelin-behavior-aphront-basic-tokenizer' => '50b52ef7',
'javelin-behavior-aphront-drag-and-drop-textarea' => '5e9e5c4e',
- 'javelin-behavior-aphront-form-disable-on-submit' => '6041c6c8',
+ 'javelin-behavior-aphront-form-disable-on-submit' => '50b52ef7',
'javelin-behavior-audit-preview' => '96909266',
'javelin-behavior-dark-console' => '4ccfeb47',
- 'javelin-behavior-device' => '6041c6c8',
+ 'javelin-behavior-device' => '50b52ef7',
'javelin-behavior-differential-accept-with-errors' => '5e9e5c4e',
'javelin-behavior-differential-add-reviewers-and-ccs' => '5e9e5c4e',
'javelin-behavior-differential-comment-jump' => '5e9e5c4e',
@@ -4563,37 +4563,37 @@
'javelin-behavior-diffusion-commit-graph' => '96909266',
'javelin-behavior-diffusion-pull-lastmodified' => '96909266',
'javelin-behavior-error-log' => '4ccfeb47',
- 'javelin-behavior-global-drag-and-drop' => '6041c6c8',
- 'javelin-behavior-history-install' => '6041c6c8',
- 'javelin-behavior-konami' => '6041c6c8',
- 'javelin-behavior-lightbox-attachments' => '6041c6c8',
+ 'javelin-behavior-global-drag-and-drop' => '50b52ef7',
+ 'javelin-behavior-history-install' => '50b52ef7',
+ 'javelin-behavior-konami' => '50b52ef7',
+ 'javelin-behavior-lightbox-attachments' => '50b52ef7',
'javelin-behavior-load-blame' => '5e9e5c4e',
'javelin-behavior-maniphest-batch-selector' => '0a694954',
'javelin-behavior-maniphest-subpriority-editor' => '0a694954',
'javelin-behavior-maniphest-transaction-controls' => '0a694954',
'javelin-behavior-maniphest-transaction-expand' => '0a694954',
'javelin-behavior-maniphest-transaction-preview' => '0a694954',
- 'javelin-behavior-phabricator-active-nav' => '6041c6c8',
- 'javelin-behavior-phabricator-autofocus' => '6041c6c8',
- 'javelin-behavior-phabricator-gesture' => '6041c6c8',
- 'javelin-behavior-phabricator-hovercards' => '6041c6c8',
- 'javelin-behavior-phabricator-keyboard-shortcuts' => '6041c6c8',
- 'javelin-behavior-phabricator-nav' => '6041c6c8',
+ 'javelin-behavior-phabricator-active-nav' => '50b52ef7',
+ 'javelin-behavior-phabricator-autofocus' => '50b52ef7',
+ 'javelin-behavior-phabricator-gesture' => '50b52ef7',
+ 'javelin-behavior-phabricator-hovercards' => '50b52ef7',
+ 'javelin-behavior-phabricator-keyboard-shortcuts' => '50b52ef7',
+ 'javelin-behavior-phabricator-nav' => '50b52ef7',
'javelin-behavior-phabricator-object-selector' => '5e9e5c4e',
- 'javelin-behavior-phabricator-oncopy' => '6041c6c8',
- 'javelin-behavior-phabricator-remarkup-assist' => '6041c6c8',
- 'javelin-behavior-phabricator-reveal-content' => '6041c6c8',
- 'javelin-behavior-phabricator-search-typeahead' => '6041c6c8',
- 'javelin-behavior-phabricator-tooltips' => '6041c6c8',
- 'javelin-behavior-phabricator-watch-anchor' => '6041c6c8',
- 'javelin-behavior-refresh-csrf' => '6041c6c8',
+ 'javelin-behavior-phabricator-oncopy' => '50b52ef7',
+ 'javelin-behavior-phabricator-remarkup-assist' => '50b52ef7',
+ 'javelin-behavior-phabricator-reveal-content' => '50b52ef7',
+ 'javelin-behavior-phabricator-search-typeahead' => '50b52ef7',
+ 'javelin-behavior-phabricator-tooltips' => '50b52ef7',
+ 'javelin-behavior-phabricator-watch-anchor' => '50b52ef7',
+ 'javelin-behavior-refresh-csrf' => '50b52ef7',
'javelin-behavior-repository-crossreference' => '5e9e5c4e',
- 'javelin-behavior-toggle-class' => '6041c6c8',
- 'javelin-behavior-workflow' => '6041c6c8',
- 'javelin-color' => '6041c6c8',
+ 'javelin-behavior-toggle-class' => '50b52ef7',
+ 'javelin-behavior-workflow' => '50b52ef7',
+ 'javelin-color' => '50b52ef7',
'javelin-dom' => '3e3be199',
'javelin-event' => '3e3be199',
- 'javelin-fx' => '6041c6c8',
+ 'javelin-fx' => '50b52ef7',
'javelin-history' => '3e3be199',
'javelin-install' => '3e3be199',
'javelin-json' => '3e3be199',
@@ -4615,36 +4615,36 @@
'maniphest-task-summary-css' => '49898640',
'phabricator-action-list-view-css' => 'a4e76ef8',
'phabricator-application-launch-view-css' => 'a4e76ef8',
- 'phabricator-busy' => '6041c6c8',
+ 'phabricator-busy' => '50b52ef7',
'phabricator-content-source-view-css' => '7cd7e387',
'phabricator-core-css' => 'a4e76ef8',
'phabricator-crumbs-view-css' => 'a4e76ef8',
'phabricator-drag-and-drop-file-upload' => '5e9e5c4e',
- 'phabricator-dropdown-menu' => '6041c6c8',
- 'phabricator-file-upload' => '6041c6c8',
+ 'phabricator-dropdown-menu' => '50b52ef7',
+ 'phabricator-file-upload' => '50b52ef7',
'phabricator-filetree-view-css' => 'a4e76ef8',
'phabricator-flag-css' => 'a4e76ef8',
- 'phabricator-hovercard' => '6041c6c8',
+ 'phabricator-hovercard' => '50b52ef7',
'phabricator-jump-nav' => 'a4e76ef8',
- 'phabricator-keyboard-shortcut' => '6041c6c8',
- 'phabricator-keyboard-shortcut-manager' => '6041c6c8',
+ 'phabricator-keyboard-shortcut' => '50b52ef7',
+ 'phabricator-keyboard-shortcut-manager' => '50b52ef7',
'phabricator-main-menu-view' => 'a4e76ef8',
- 'phabricator-menu-item' => '6041c6c8',
+ 'phabricator-menu-item' => '50b52ef7',
'phabricator-nav-view-css' => 'a4e76ef8',
- 'phabricator-notification' => '6041c6c8',
+ 'phabricator-notification' => '50b52ef7',
'phabricator-notification-css' => 'a4e76ef8',
'phabricator-notification-menu-css' => 'a4e76ef8',
'phabricator-object-selector-css' => '7cd7e387',
- 'phabricator-phtize' => '6041c6c8',
- 'phabricator-prefab' => '6041c6c8',
+ 'phabricator-phtize' => '50b52ef7',
+ 'phabricator-prefab' => '50b52ef7',
'phabricator-project-tag-css' => '49898640',
'phabricator-remarkup-css' => 'a4e76ef8',
'phabricator-shaped-request' => '5e9e5c4e',
'phabricator-side-menu-view-css' => 'a4e76ef8',
'phabricator-standard-page-view' => 'a4e76ef8',
'phabricator-tag-view-css' => 'a4e76ef8',
- 'phabricator-textareautils' => '6041c6c8',
- 'phabricator-tooltip' => '6041c6c8',
+ 'phabricator-textareautils' => '50b52ef7',
+ 'phabricator-tooltip' => '50b52ef7',
'phabricator-transaction-view-css' => 'a4e76ef8',
'phabricator-zindex-css' => 'a4e76ef8',
'phui-button-css' => 'a4e76ef8',
Index: src/view/form/control/PhabricatorRemarkupControl.php
===================================================================
--- src/view/form/control/PhabricatorRemarkupControl.php
+++ src/view/form/control/PhabricatorRemarkupControl.php
@@ -37,6 +37,9 @@
'i' => array(
'tip' => pht('Italics'),
),
+ 'a' => array(
+ 'tip' => pht('Link'),
+ ),
'tt' => array(
'tip' => pht('Monospaced'),
),
Index: webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
===================================================================
--- webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
+++ webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
@@ -107,6 +107,14 @@
case 'i':
update(area, '//', sel || pht('italic text'), '//');
break;
+ case 'a':
+ var name = pht('name');
+ if (/^https?:/i.test(sel)) {
+ update(area, '[[ ' + sel + ' | ', name, ' ]]');
+ } else {
+ update(area, '[[ ', 'URL', ' | ' + (sel || name) + ' ]]');
+ }
+ break;
case 'tt':
update(area, '`', sel || pht('monospaced text'), '`');
break;

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 23, 5:28 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6743641
Default Alt Text
D7336.id16519.diff (8 KB)

Event Timeline