@@ -202,7 +202,7 @@ function add_new_text_cell(c_id, where) {
202202 divReference . insertAdjacentHTML ( "afterend" , html ) ;
203203 }
204204
205- vars_in_scope [ `div -${ new_id } ` ] = ""
205+ vars_in_scope [ `div_text -${ new_id } ` ] = ""
206206
207207 update_text_box_size ( )
208208
@@ -260,7 +260,7 @@ $(document).on("click", "button.del", function () {
260260 console . log ( this . id ) ;
261261 let id = this . id . split ( "-" ) [ 1 ]
262262 console . log ( id ) ;
263- // delete_cell(id)
263+ delete_cell ( id )
264264} )
265265
266266
@@ -303,11 +303,14 @@ $(document).on("dblclick", "div.text-out-box", function () {
303303 let id = this . id . split ( "_" ) [ 1 ]
304304 md_id = `text-div_${ id } `
305305 out_id = `out-text-div_${ id } `
306+ // console.log(md_texts);
306307 md_txt = md_texts [ md_id ]
307-
308+ console . log ( md_id , md_txt ) ;
309+ // console.log($(`#${out_id}`).html())
308310 document . getElementById ( md_id ) . style . display = "block"
309- document . getElementById ( md_id ) . value = md_txt
310- document . getElementById ( out_id ) . style . display = "none"
311+ // // console.log($(`#${md_id} .text-out-box`).val());
312+ document . getElementById ( md_id ) . value = "nnnnnnnn"
313+ // document.getElementById(out_id).style.display = "none"
311314
312315} )
313316
@@ -324,7 +327,7 @@ function update_text_box_size() {
324327
325328$ ( "#download" ) . click ( function ( ) {
326329
327- let out = notebook_json ( vars_in_scope ) ;
330+ let out = notebook_json ( vars_in_scope , md_texts ) ;
328331
329332 console . log ( out ) ;
330333} ) ;
0 commit comments