We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ac062 commit abaa5aaCopy full SHA for abaa5aa
packages/sn-editor-react/src/tinymce/controls/repo-file-plugin.tsx
@@ -94,11 +94,10 @@ export const RepoFilePluginControl: React.FC<RepoFilePluginControlProps> = ({ ed
94
const content = selection
95
.filter((item) => item.IsFile)
96
.map((item) => {
97
- const href = `${item.Path.replace(/^\/+/, '')}`.replace('/Content', '')
98
const size = item.Size ? `(${(item.Size / 1024).toFixed(0)} KB)` : ''
99
return `<div class="download">
100
<div>${item.DisplayName}</div>
101
- <a href="${href}" target="_blank" rel="noopener">Download</a> ${size}
+ <a href="${item.Path}" target="_blank" rel="noopener">Download</a> ${size}
102
</div>
103
<p> </p>`
104
})
0 commit comments