Layer gets the content of layedit in the pop-up window

Open a new page when Layer.open how to initialize the layedit component on the new page, and how to Synchronize the layedit content to textarea
`layui.use (["layer"], function () {

) when the form is submitted by button included with layer.
        var layer = layui.layer;
        layer.open({
            content: "/base/addTo/"+addform,
            btn: ["",""],
            yes: function(index, layero){
                var body = layer.getChildFrame("body", index);
                var iframeWin = window[layero.find("iframe")[0]["name"]];
                var form = body.find("-sharpeditForm");
                var bt=$(".layui-layer-btn0");
                var editor = body.find("-sharpeditor");
               // var i = editor.attr("index");
                alert(editor.val());
                if(form.valid()){
                    var loadindex = layer.load(0, {time: 10*1000});
                    $.post("/base/add/"+addform,
                            form.serialize(),`
Mar.13,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3791f-3446f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3791f-3446f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?