forked from Botanical/BotanJS
ArticleReference
This commit is contained in:
@@ -248,7 +248,7 @@
|
||||
// No candidates, directly pass the input text to the processor
|
||||
if( ModLevels.Cands().Empty && 1 < ModLevels.length )
|
||||
{
|
||||
ModLevels.Action()( sender.value );
|
||||
ModLevels.Action()( sender.value.substr( 1 ) );
|
||||
sender.BindingBox.close();
|
||||
break;
|
||||
}
|
||||
@@ -258,7 +258,8 @@
|
||||
if( selected )
|
||||
{
|
||||
insert = undefined;
|
||||
ModLevels.Action()( selected.getDAttribute( "key" ) );
|
||||
var close = ModLevels.Action()( selected.getDAttribute( "key" ) );
|
||||
if( close ) sender.BindingBox.close();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -386,7 +387,7 @@
|
||||
{
|
||||
stage( Candidates );
|
||||
title( true );
|
||||
stage()[0].value = "";
|
||||
stage()[0].value = "`";
|
||||
stage()[0].setAttribute( "placeholder", ModLevels.Cands().desc );
|
||||
}
|
||||
};
|
||||
@@ -454,7 +455,7 @@
|
||||
var MasterInput = function( visualizer )
|
||||
{
|
||||
var Cands = {
|
||||
"Article Reference": { module: "ArticleReference", desc: "Article reference link" }
|
||||
"Article Reference": { module: "ArticleReference", desc: "Links to other article" }
|
||||
, "facts": { module: "Facts", desc: "Facts, a fact bubble popup when mouseover" }
|
||||
, "footnote": { module: "Footnote", desc: "Footnote, a footnote displayed at the end of article" }
|
||||
, "h1": { module: "Heading", options: 1, desc: "Heading, size 1" }
|
||||
@@ -478,11 +479,14 @@
|
||||
var module = new ( __import( e ) )( visualizer, sender );
|
||||
|
||||
var ModItem = Cands[ sender ];
|
||||
InputBox.advanceLevel(
|
||||
new Candidates( ModItem.module, ModItem.desc, module.GetCandidates() )
|
||||
, module.Process.bind( module )
|
||||
, module.Retreat.bind( module )
|
||||
);
|
||||
|
||||
module.GetCandidates( function( x ) {
|
||||
InputBox.advanceLevel(
|
||||
new Candidates( ModItem.module, ModItem.desc, x )
|
||||
, module.Process.bind( module )
|
||||
, module.Retreat.bind( module )
|
||||
);
|
||||
} );
|
||||
};
|
||||
|
||||
var BackQuoteBinding = function ( sender, e )
|
||||
|
||||
Reference in New Issue
Block a user