Implements a markdown box
This commit is contained in:
parent
95a651396d
commit
02f53fb1e5
12 changed files with 221 additions and 30 deletions
|
@ -47,7 +47,9 @@ class Message{
|
|||
});
|
||||
Message.contextmenu.addbutton("Edit",function(){
|
||||
this.channel.editing=this;
|
||||
(document.getElementById("typebox") as HTMLInputElement).value=this.content;
|
||||
const markdown=(document.getElementById("typebox"))["markdown"] as MarkDown;
|
||||
markdown.txt=this.content.rawString;
|
||||
markdown.boxupdate(document.getElementById("typebox"));
|
||||
},null,_=>{return _.author.id===_.localuser.user.id});
|
||||
Message.contextmenu.addbutton("Delete message",function(){
|
||||
this.delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue