feat: text editor for description

This commit is contained in:
Jannat Patel
2023-04-06 18:01:12 +05:30
parent fafd132768
commit e4b4556210
10 changed files with 35 additions and 26 deletions
+2 -7
View File
@@ -597,13 +597,8 @@ const make_editor = () => {
fields: [
{
fieldname: "code_md",
fieldtype: "Code",
options: "Markdown",
wrap: true,
max_lines: Infinity,
min_lines: 20,
default: $("#body").data("body"),
depends_on: 'eval:doc.type=="Markdown"',
fieldtype: "Text Editor",
default: $(".body-data").html(),
},
],
body: $("#body").get(0),