Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18613568
MWInternalLink References in VE Code
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
santhosh
May 30 2018, 11:54 AM
2018-05-30 11:54:36 (UTC+0)
Size
1009 B
Referenced Files
None
Subscribers
None
MWInternalLink References in VE Code
View Options
ve.ui.MWLinkAction#getLinkAnnotation in ve.ui.actionFactorory with 'link'
/**
* Open either the 'link' or 'linkNode' window, depending on what is selected.
*
* @method
* @return {boolean} Action was executed
*/
ve.ui.MWLinkAction.prototype.open = function () {
var fragment = this.surface.getModel().getFragment(),
selectedNode = fragment.getSelectedNode(),
windowName = 'link';
if ( selectedNode instanceof ve.dm.MWNumberedExternalLinkNode ) {
windowName = 'linkNode';
} else if ( selectedNode instanceof ve.dm.MWMagicLinkNode ) {
windowName = 'linkMagicNode';
}
this.surface.execute( 'window', 'open', windowName );
return true;
};
> ve.init.target.targetSurface.execute( 'window', 'open', 'link' ); // opens ve.ui.MWLinkInspectorTool
ve.ui.MWInternalLinkAnnotationWidget.static.getAnnotationFromText
ve.dm.MWInternalLinkAnnotation.static.newFromTitle( title, trimmed );
ve.ui.MWLinkInspectorTool
ve.ui.MWLinkInspectorTool.static.commandName = 'link'; in ve.ui.toolFactory with 'link'
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5854615
Default Alt Text
MWInternalLink References in VE Code (1009 B)
Attached To
Mode
P7185 MWInternalLink References in VE Code
Attached
Detach File
Event Timeline
Log In to Comment