1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Copy link to section to clipboard

Closes #174
This commit is contained in:
HarveyKandola 2019-06-05 12:52:15 +01:00
parent b8fee6b962
commit 9b82f42cc1
9 changed files with 1057 additions and 37 deletions

View file

@ -12,34 +12,35 @@
</div>
{{else}}
<div class={{page.tocIndentCss}}>
{{document/page-heading
expanded=expanded
page=page
meta=meta
pages=pages
roles=roles
folder=folder
blocks=blocks
tabMode=tabMode
pending=pending
document=document
permissions=permissions
onEdit=(action "onEdit")
refresh=(action refresh)
onExpand=(action onExpand)
onCopyPage=(action "onCopyPage")
onMovePage=(action "onMovePage")
onDeletePage=(action "onDeletePage")
onSavePageAsBlock=(action "onSavePageAsBlock")
onPageLevelChange=(action onPageLevelChange)
onPageSequenceChange=(action onPageSequenceChange)
onShowSectionWizard=(action onShowSectionWizard)}}
{{document/page-heading
expanded=expanded
page=page
meta=meta
pages=pages
roles=roles
folder=folder
blocks=blocks
tabMode=tabMode
pending=pending
document=document
permissions=permissions
currentPageId=currentPageId
onEdit=(action "onEdit")
refresh=(action refresh)
onExpand=(action onExpand)
onCopyPage=(action "onCopyPage")
onMovePage=(action "onMovePage")
onDeletePage=(action "onDeletePage")
onSavePageAsBlock=(action "onSavePageAsBlock")
onPageLevelChange=(action onPageLevelChange)
onPageSequenceChange=(action onPageSequenceChange)
onShowSectionWizard=(action onShowSectionWizard)}}
{{#if expanded}}
<div class="wysiwyg">
{{section/base-renderer page=page}}
</div>
{{/if}}
{{#if expanded}}
<div class="wysiwyg">
{{section/base-renderer page=page}}
</div>
{{/if}}
</div>
{{/if}}

View file

@ -8,14 +8,10 @@
</div>
</div>
<div class="grid-cell-2 grid-cell-right grid-cell-middle">
<div class="section-heading no-print" id="page-toolbar-{{ page.id }}">
<div class="section-toolbar">
<i class="dicon {{constants.Icon.Expand}} {{unless expanded "expand"}}" {{action "onExpand"}}>
{{#attach-tooltip showDelay=1000}}Show/hide{{/attach-tooltip}}
</i>
<div class="section-heading no-print" id="page-toolbar-{{ page.id }}">
<div class="section-toolbar">
{{#unless (eq document.protection constants.ProtectionType.Lock)}}
{{#if canEdit}}
<div class="gap"/>
<i class="add-section dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard" page}}>
{{#attach-tooltip showDelay=1000}}Insert section above{{/attach-tooltip}}
</i>
@ -62,8 +58,16 @@
</i>
{{/if}}
{{/unless}}
</div>
<div class="gap"/>
<i id="page-copy-link-{{page.id}}" class="dicon {{constants.Icon.Link}}" {{action "onCopyLink"}}>
{{#attach-tooltip showDelay=1000}}Copy link{{/attach-tooltip}}
</i>
<div class="gap"/>
<i class="dicon {{constants.Icon.Expand}} {{unless expanded "expand"}}" {{action "onExpand"}}>
{{#attach-tooltip showDelay=1000}}Show/hide{{/attach-tooltip}}
</i>
</div>
</div>
</div>
</div>

View file

@ -14,6 +14,7 @@
pending=item.pending
permissions=permissions
attachments=attachments
currentPageId=currentPageId
refresh=(action refresh)
onExpand=(action onExpand)
onAttachmentUpload=(action onAttachmentUpload)