comparison src/bbcode/test.html @ 46:289718f121e4

use bbcode editor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Nov 2022 18:43:38 -0700
parents 96f0c3d65698
children f225e82b2bf8
comparison
equal deleted inserted replaced
45:2d4f00755092 46:289718f121e4
30 }; 30 };
31 request.send(postData); 31 request.send(postData);
32 } 32 }
33 33
34 function save(event) { 34 function save(event) {
35 let div = getBbcodeDiv(event.target); 35 let text = document.querySelector('textarea').value;
36 let text = div.querySelector('textarea').value;
37 ajax( 'test.js?text=' + encodeURIComponent(text) ); 36 ajax( 'test.js?text=' + encodeURIComponent(text) );
38 } 37 }
39 38
40 function init() { 39 function init() {
41 bbcodeCreate('p[edit]',{ 40 bbcodeCreate('p[edit]',{