Loading editor/src/webedit_api.cpp +5 −1 Changes for editor/src/webedit_api.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3903,6 +3903,8 @@ webedit::Api::PublishCoreResult webedit::Api::publishToConnectionCore( std::string html = renderTree(doc.root); std::string llmsTxt = generateLlmsTxt(doc.root); std::cerr << "[llms-debug] publish: html.size()=" << html.size() << " llmsTxt.size()=" << llmsTxt.size() << std::endl; // Build the publish command: // [{"authid":"..."}, {"command":"publish","target":"template","html":"...","params":{...}}] Loading Loading @@ -4715,10 +4717,12 @@ namespace { // have its children walked (e.g. Accordion's panel content). void collectLlmsBlocks(const blogi::webedit::EditPlugin *el, std::vector<std::string> &blocks) { for (const blogi::webedit::EditPlugin *cur = el; cur; cur = cur->nextElement()) { auto block = cur->toLlmsBlock(); std::cerr << "[llms-debug] visit " << cur->getName() << " block=" << (block ? std::to_string(block->size()) + "bytes" : "nullopt") << " child=" << (cur->getChildElement() ? "yes" : "no") << " next=" << (cur->nextElement() ? "yes" : "no") << std::endl; if (auto block = cur->toLlmsBlock()) if (block) appendBlock(blocks, *block); if (const blogi::webedit::EditPlugin *child = cur->getChildElement()) collectLlmsBlocks(child, blocks); Loading Loading
editor/src/webedit_api.cpp +5 −1 Changes for editor/src/webedit_api.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3903,6 +3903,8 @@ webedit::Api::PublishCoreResult webedit::Api::publishToConnectionCore( std::string html = renderTree(doc.root); std::string llmsTxt = generateLlmsTxt(doc.root); std::cerr << "[llms-debug] publish: html.size()=" << html.size() << " llmsTxt.size()=" << llmsTxt.size() << std::endl; // Build the publish command: // [{"authid":"..."}, {"command":"publish","target":"template","html":"...","params":{...}}] Loading Loading @@ -4715,10 +4717,12 @@ namespace { // have its children walked (e.g. Accordion's panel content). void collectLlmsBlocks(const blogi::webedit::EditPlugin *el, std::vector<std::string> &blocks) { for (const blogi::webedit::EditPlugin *cur = el; cur; cur = cur->nextElement()) { auto block = cur->toLlmsBlock(); std::cerr << "[llms-debug] visit " << cur->getName() << " block=" << (block ? std::to_string(block->size()) + "bytes" : "nullopt") << " child=" << (cur->getChildElement() ? "yes" : "no") << " next=" << (cur->nextElement() ? "yes" : "no") << std::endl; if (auto block = cur->toLlmsBlock()) if (block) appendBlock(blocks, *block); if (const blogi::webedit::EditPlugin *child = cur->getChildElement()) collectLlmsBlocks(child, blocks); Loading