Implements a markdown box
This commit is contained in:
parent
95a651396d
commit
02f53fb1e5
12 changed files with 221 additions and 30 deletions
|
@ -43,7 +43,9 @@ class Message {
|
|||
});
|
||||
Message.contextmenu.addbutton("Edit", function () {
|
||||
this.channel.editing = this;
|
||||
document.getElementById("typebox").value = this.content;
|
||||
const markdown = (document.getElementById("typebox"))["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