Skip to content

联动Sofill=主题 #338

Closed
Closed
@terwer

Description

@terwer
Owner

Image

Activity

converted this from a draft issue on Jan 12, 2023
changed the title [-]联动Sofill=主题适配[/-] [+]联动Sofill=主题[/+] on Jan 12, 2023
moved this from 开发中 to 待开发 in sy-post-publisheron Jan 12, 2023
added this to the 0.7.0 milestone on Jan 12, 2023
self-assigned this
on Jan 12, 2023
moved this from 待开发 to 开发中 in sy-post-publisheron Jan 29, 2023
modified the milestones: 0.7.0, 0.6.8 on Jan 29, 2023
terwer

terwer commented on Jan 30, 2023

@terwer
OwnerAuthor

步骤:
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)
added a commit that references this issue on Jan 30, 2023

fix: #338 联动Sofill=主题,提供统一的hook入口,除了js片段之外,新增挂件触发插槽显示

c55437e
moved this from 开发中 to 已完成 in sy-post-publisheron Jan 30, 2023

1 remaining item

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

已完成

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @terwer

      Issue actions

        联动Sofill=主题 · Issue #338 · terwer/siyuan-plugin-publisher