Content deleted Content added
experimental reference management, deactivated |
update |
||
Line 46:
function less_edit_clutter_tb1_select ( ta ) {
var selection = ta.value.substr(ta.selectionStart, ta.selectionEnd - ta.selectionStart);
if ( ! /^\<*
alert ( selection ) ;
}
Line 59:
function less_edit_clutter_refsel_changed () {
var si = lec_tb_ref.selectedIndex + 1 ;
var key = '<<
var cont = true ;
if ( cont ) cont = less_edit_clutter_find_and_mark ( key , lec_tb_top ) ;
Line 77:
text = text.join ( ' | ' ) ;
refstuff = prompt ( "Enter reference name:" , refstuff ) ;
if ( null == refstuff ) return ; // Cancel
text = prompt ( "Enter reference contents:" , text ) ;
if ( null == text ) return ; // Cancel
lec_tb_ref[si].firstChild.nodeValue = value + ' : ' + refstuff + ' | ' + text ;
}
Line 124 ⟶ 126:
text = text.join ( ' | ' ) ;
text = '<ref' + refstuff + '>' + text + '</ref>' ;
var key = '<<
v = v.split(key).join(text) ;
}
Line 326 ⟶ 328:
// if ( n.length > 1 ) { o += '<ref' + v[i] ; continue ; }
n = n.join ( '</ref>' ) ;
o += '<<
refs.push ( cnt + ' : ' + refstuff + ' | ' + refcontents ) ;
cnt++ ;
|