docs(phone-image): 产出排版功能架构文档

fix(phone-image): 修复分页标记丢失bug,消除双数据源问题

- 新增 getContentHtml() 和 updateConfig() 引擎API
- 保存逻辑改用引擎内部 content_html,不再从DOM读取
- doRender 改用 updateConfig,配置变更不重置内容
- loadFromHistory 改用 init+render 全量初始化
- PHP/JS 配置字段对齐(移除template/font,新增pageAlignments)
This commit is contained in:
augushong
2026-05-11 21:17:37 +08:00
parent ba543040fa
commit e9d839ae8a
3 changed files with 359 additions and 25 deletions

View File

@@ -1482,6 +1482,14 @@ var PhoneImageEngine = (function () {
setPageAlignment: setPageAlignment,
insertPageBreak: insertPageBreak,
removePageBreak: removePageBreak,
getContentHtml: function () {
return postData.content_html;
},
updateConfig: function (newConfig) {
if (newConfig) {
$.extend(config, newConfig);
}
},
exportLongImage: exportLongImage
};
})();