Skip to content

Commit

Permalink
fix: 修复划词保存到小记格式
Browse files Browse the repository at this point in the history
  • Loading branch information
moshangqi committed Oct 30, 2023
1 parent 6afe2bf commit c319cb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/pages/inject/WordMark/app.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@
display: none;
}

.link {
color: @link-color;
}

4 changes: 2 additions & 2 deletions src/pages/inject/WordMark/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function WordMarkApp() {
<span>
{__i18n('保存成功!')}
&nbsp;&nbsp;
<a target="_blank" href={url}>
<a target="_blank" href={url} className={styles.link}>
{__i18n('去小记查看')}
</a>
</span>,
Expand Down Expand Up @@ -116,7 +116,7 @@ function WordMarkApp() {
.join('');
}
await editorRef.current?.setContent(
`${html}<p><br></p><blockquote><p>来自: <a href="${window.location.href}">${document.title}</a></p></blockquote>`,
`${html}<blockquote><p>来自: <a href="${window.location.href}">${document.title}</a></p></blockquote>`,
'text/html',
);
await save(html);
Expand Down

0 comments on commit c319cb0

Please sign in to comment.