Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/control/PhabricatorRemarkupControl.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if (!$this->getDisabled()) { | ||||
'uri' => '/file/dropupload/', | 'uri' => '/file/dropupload/', | ||||
'chunkThreshold' => PhabricatorFileStorageEngine::getChunkThreshold(), | 'chunkThreshold' => PhabricatorFileStorageEngine::getChunkThreshold(), | ||||
)); | )); | ||||
} | } | ||||
$root_id = celerity_generate_unique_node_id(); | $root_id = celerity_generate_unique_node_id(); | ||||
$user_datasource = new PhabricatorPeopleDatasource(); | $user_datasource = new PhabricatorPeopleDatasource(); | ||||
$emoji_datasource = new PhabricatorEmojiDatasource(); | |||||
$proj_datasource = id(new PhabricatorProjectDatasource()) | $proj_datasource = id(new PhabricatorProjectDatasource()) | ||||
->setParameters( | ->setParameters( | ||||
array( | array( | ||||
'autocomplete' => 1, | 'autocomplete' => 1, | ||||
)); | )); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'phabricator-remarkup-assist', | 'phabricator-remarkup-assist', | ||||
Show All 20 Lines | Javelin::initBehavior( | ||||
'hintText' => $user_datasource->getPlaceholderText(), | 'hintText' => $user_datasource->getPlaceholderText(), | ||||
), | ), | ||||
35 => array( // "#" | 35 => array( // "#" | ||||
'datasourceURI' => $proj_datasource->getDatasourceURI(), | 'datasourceURI' => $proj_datasource->getDatasourceURI(), | ||||
'headerIcon' => 'fa-briefcase', | 'headerIcon' => 'fa-briefcase', | ||||
'headerText' => pht('Find Project:'), | 'headerText' => pht('Find Project:'), | ||||
'hintText' => $proj_datasource->getPlaceholderText(), | 'hintText' => $proj_datasource->getPlaceholderText(), | ||||
), | ), | ||||
58 => array( // ":" | |||||
'datasourceURI' => $emoji_datasource->getDatasourceURI(), | |||||
'headerIcon' => 'fa-smile-o', | |||||
'headerText' => pht('Find Emoji:'), | |||||
'hintText' => $emoji_datasource->getPlaceholderText(), | |||||
), | |||||
), | ), | ||||
)); | )); | ||||
Javelin::initBehavior('phabricator-tooltips', array()); | Javelin::initBehavior('phabricator-tooltips', array()); | ||||
$actions = array( | $actions = array( | ||||
'fa-bold' => array( | 'fa-bold' => array( | ||||
'tip' => pht('Bold'), | 'tip' => pht('Bold'), | ||||
'nodevice' => true, | 'nodevice' => true, | ||||
▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines |