Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

联动Sofill=主题 #338

Closed
terwer opened this issue Jan 12, 2023 · 1 comment
Closed

联动Sofill=主题 #338

terwer opened this issue Jan 12, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@terwer
Copy link
Owner

terwer commented Jan 12, 2023

Image

@terwer terwer changed the title 联动Sofill=主题适配 联动Sofill=主题 Jan 12, 2023
@terwer terwer added the enhancement New feature or request label Jan 12, 2023
@terwer terwer added this to the 0.7.0 milestone Jan 12, 2023
@terwer terwer self-assigned this Jan 12, 2023
@terwer terwer modified the milestones: 0.7.0, 0.6.8 Jan 29, 2023
@terwer
Copy link
Owner Author

terwer commented Jan 30, 2023

步骤:
1、初始化

      // 初始化发布辅助功能
      const publishHelperLibPath = `${window.siyuan.config.system.dataDir}/widgets/sy-post-publisher/lib/siyuan/publish-helper.js`
      console.log(
        "自定义js片段将要从以下位置引入发布辅助功能",
        publishHelperLibPath
      )
      const initPublishHelper = window.require(publishHelperLibPath)
      initPublishHelper()

2、打开页面

// 参数示例
// pageid: 20230130095036-7jfvjm0
// pageUrl:index.html
window.terwer.renderPublishHelper(pageId, pageUrl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 已完成
Development

No branches or pull requests

1 participant