|
|
6 ani în urmă | |
|---|---|---|
| .. | ||
| resource | 4850c3878b update docs | 4 ani în urmă |
| src | ce67e29ebd impl ref tag | 4 ani în urmă |
| .editorconfig | 0904cd50be init | 4 ani în urmă |
| .eslintignore | 5ac04219a9 add skelton files | 4 ani în urmă |
| .eslintrc.js | 5ac04219a9 add skelton files | 4 ani în urmă |
| .gitignore | 0904cd50be init | 4 ani în urmă |
| .markdownlint.json | 0904cd50be init | 4 ani în urmă |
| LICENSE | 0904cd50be init | 4 ani în urmă |
| README.md | f2902284ca update docs | 4 ani în urmă |
| index.js | 5ac04219a9 add skelton files | 4 ani în urmă |
| package.json | 5ac04219a9 add skelton files | 4 ani în urmă |
| yarn.lock | 5ac04219a9 add skelton files | 4 ani în urmă |
install plugin
yarn add growi-plugin-attachment-refs
build client app (see official documents)
ref tag$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
page : Target page path of reference filerefs tag$refs(/somewhere/page, regexp=/^file.*\.txt$/)
regexp : Regular Expression to retrieveformat : File format specificationrefimg tag$refimg(pict.png, width=50%, alt=Pic)
<img src="/attachment/xxxxx" width="50%" alt="Pic">
width : widthheight : heightmax-width : max-widthmax-height : max-heightalt : alt textrefsimg tag$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
<ul>
<li><img src="/attachment/xxxxx" style="max-width: 200"></li>
<li><img src="/attachment/yyyyy" style="max-width: 200"></li>
<li><img src="/attachment/zzzzz" style="max-width: 200"></li>
</ul>
width : widthheight : heightmax-width : max-widthmax-height : max-heightregexp optionformat option
