Mercurial Hosting > freedit
comparison src/bbcode/bbcode.js @ 50:0d99cec5142c
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 17 Nov 2022 22:00:59 -0700 |
parents | f225e82b2bf8 |
children | 78b2d6995244 |
comparison
equal
deleted
inserted
replaced
49:f225e82b2bf8 | 50:0d99cec5142c |
---|---|
36 options = options || {}; | 36 options = options || {}; |
37 let content = options.content || ''; | 37 let content = options.content || ''; |
38 let save = options.save; | 38 let save = options.save; |
39 let cancel = options.cancel; | 39 let cancel = options.cancel; |
40 let html = `\ | 40 let html = `\ |
41 <div bbcode> | 41 <div bbcode_editor> |
42 <textarea name=bbcode>${content}</textarea> | 42 <textarea name=bbcode>${content}</textarea> |
43 <div buttons> | 43 <div buttons> |
44 <button type=button bold title="Bold"><img src="/bbcode/icons/format_bold.svg"></button> | 44 <button type=button bold title="Bold"><img src="/bbcode/icons/format_bold.svg"></button> |
45 <button type=button italic title="Italic"><img src="/bbcode/icons/format_italic.svg"></button> | 45 <button type=button italic title="Italic"><img src="/bbcode/icons/format_italic.svg"></button> |
46 <button type=button underline title="Underline"><img src="/bbcode/icons/format_underlined.svg"></button> | 46 <button type=button underline title="Underline"><img src="/bbcode/icons/format_underlined.svg"></button> |