mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Provide assist for Remarkup table
Summary: Can you please pick up the icon for it and regenerate sprites? Test Plan: Selected text, clicked on it. Unselected text, clicked on it. Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3730
This commit is contained in:
parent
2f64a01579
commit
e14930f860
3 changed files with 7 additions and 1 deletions
|
@ -1559,7 +1559,7 @@ celerity_register_resource_map(array(
|
||||||
),
|
),
|
||||||
'javelin-behavior-phabricator-remarkup-assist' =>
|
'javelin-behavior-phabricator-remarkup-assist' =>
|
||||||
array(
|
array(
|
||||||
'uri' => '/res/7cb3a2ff/rsrc/js/application/core/behavior-phabricator-remarkup-assist.js',
|
'uri' => '/res/8a4f3a35/rsrc/js/application/core/behavior-phabricator-remarkup-assist.js',
|
||||||
'type' => 'js',
|
'type' => 'js',
|
||||||
'requires' =>
|
'requires' =>
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -58,6 +58,9 @@ final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
|
||||||
'code' => array(
|
'code' => array(
|
||||||
'tip' => pht('Code Block'),
|
'tip' => pht('Code Block'),
|
||||||
),
|
),
|
||||||
|
'table' => array(
|
||||||
|
'tip' => pht('Table'),
|
||||||
|
),
|
||||||
'help' => array(
|
'help' => array(
|
||||||
'tip' => pht('Help'),
|
'tip' => pht('Help'),
|
||||||
'align' => 'right',
|
'align' => 'right',
|
||||||
|
|
|
@ -56,6 +56,9 @@ JX.behavior('phabricator-remarkup-assist', function(config) {
|
||||||
sel = " " + sel.join("\n ");
|
sel = " " + sel.join("\n ");
|
||||||
update(area, ((r.start == 0) ? "" : "\n\n"), sel, "\n\n");
|
update(area, ((r.start == 0) ? "" : "\n\n"), sel, "\n\n");
|
||||||
break;
|
break;
|
||||||
|
case 'table':
|
||||||
|
update(area, (r.start == 0 ? '' : '\n\n') + '| ', sel || 'data', ' |');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue