Commit 66938696 authored by jan.koester's avatar jan.koester
Browse files

test

parent 15712e97
Loading
Loading
Loading
Loading
+10 −0
Changes for src/edit.cpp: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2197,6 +2197,11 @@ void blogi::webedit::WebEditor::JsonApi(const int tid, json_object *request, jso
            std::string renderedHtml;
            if (DocRoot) {
                libhtmlpp::HtmlElement wrapper("div");
                if (!GlobalCss.empty()) {
                    libhtmlpp::HtmlElement globalStyle("style");
                    globalStyle.appendChild(libhtmlpp::TextElement(GlobalCss.c_str()));
                    wrapper.appendChild(globalStyle);
                }
                const EditPlugin *el = DocRoot;
                while (el) {
                    el->Render(wrapper);
@@ -2437,6 +2442,11 @@ void blogi::webedit::WebEditor::JsonApi(const int tid, json_object *request, jso
                std::string renderedHtml;
                if (DocRoot) {
                    libhtmlpp::HtmlElement wrapper("div");
                    if (!GlobalCss.empty()) {
                        libhtmlpp::HtmlElement globalStyle("style");
                        globalStyle.appendChild(libhtmlpp::TextElement(GlobalCss.c_str()));
                        wrapper.appendChild(globalStyle);
                    }
                    const EditPlugin *el = DocRoot;
                    while (el) {
                        el->Render(wrapper);