mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
embed links into markdown content
This commit is contained in:
parent
88add0ae63
commit
60131df628
7 changed files with 628 additions and 620 deletions
|
@ -8,7 +8,7 @@ The mission is to bring software dev inspired features (refactoring, testing, li
|
||||||
|
|
||||||
## Latest version
|
## Latest version
|
||||||
|
|
||||||
v1.47.0
|
v1.47.1
|
||||||
|
|
||||||
## OS Support
|
## OS Support
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
if (!$(jumpTo).inView()) {
|
if (!$(jumpTo).inView()) {
|
||||||
$(jumpTo).velocity("scroll", { duration: 250, offset: -100 });
|
$(jumpTo).velocity("scroll", { duration: 250, offset: -100 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
didRender() {
|
didRender() {
|
||||||
|
@ -83,7 +83,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
link.orphan = true;
|
link.orphan = true;
|
||||||
} else {
|
} else {
|
||||||
if (link.linkType === "section") {
|
if (link.linkType === "section") {
|
||||||
self.attrs.gotoPage(link.targetId);
|
self.attrs.onGotoPage(link.targetId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
documentService: Ember.inject.service('document'),
|
documentService: Ember.inject.service('document'),
|
||||||
templateService: Ember.inject.service('template'),
|
templateService: Ember.inject.service('template'),
|
||||||
sectionService: Ember.inject.service('section'),
|
sectionService: Ember.inject.service('section'),
|
||||||
|
linkService: Ember.inject.service('link'),
|
||||||
folder: {},
|
folder: {},
|
||||||
pages: [],
|
pages: [],
|
||||||
toggled: false,
|
toggled: false,
|
||||||
|
@ -42,6 +43,10 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
if (documentId === targetDocumentId) {
|
if (documentId === targetDocumentId) {
|
||||||
this.set('pageId', '');
|
this.set('pageId', '');
|
||||||
this.get('target.router').refresh();
|
this.get('target.router').refresh();
|
||||||
|
|
||||||
|
this.get('linkService').getDocumentLinks(this.get('model.document.id')).then((links) => {
|
||||||
|
this.set('model.links', links);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -65,6 +70,9 @@ export default Ember.Controller.extend(NotifierMixin, {
|
||||||
this.get('documentService').updatePage(documentId, page.get('id'), model).then((up) => {
|
this.get('documentService').updatePage(documentId, page.get('id'), model).then((up) => {
|
||||||
page = up;
|
page = up;
|
||||||
this.set('pageId', page.get('id'));
|
this.set('pageId', page.get('id'));
|
||||||
|
this.get('linkService').getDocumentLinks(this.get('model.document.id')).then((links) => {
|
||||||
|
this.set('model.links', links);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
{{document/document-view document=model.document links=model.links pages=model.pages
|
{{document/document-view document=model.document links=model.links pages=model.pages
|
||||||
folder=model.folder folders=model.folders sections=model.sections isEditor=model.isEditor pageId=pageId
|
folder=model.folder folders=model.folders sections=model.sections isEditor=model.isEditor pageId=pageId
|
||||||
onSavePage=(action 'onSavePage') onInsertSection=(action 'onInsertSection')
|
onSavePage=(action 'onSavePage') onInsertSection=(action 'onInsertSection')
|
||||||
onSavePageAsBlock=(action 'onSavePageAsBlock') onDeleteBlock=(action 'onDeleteBlock')
|
onSavePageAsBlock=(action 'onSavePageAsBlock') onDeleteBlock=(action 'onDeleteBlock') onGotoPage=(action 'onGotoPage')
|
||||||
onCopyPage=(action 'onCopyPage') onMovePage=(action 'onMovePage') onDeletePage=(action 'onPageDeleted')}}
|
onCopyPage=(action 'onCopyPage') onMovePage=(action 'onMovePage') onDeletePage=(action 'onPageDeleted')}}
|
||||||
</div>
|
</div>
|
||||||
{{/layout/zone-content}}
|
{{/layout/zone-content}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "documize",
|
"name": "documize",
|
||||||
"version": "1.47.0",
|
"version": "1.47.1",
|
||||||
"description": "The Document IDE",
|
"description": "The Document IDE",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": "",
|
"repository": "",
|
||||||
|
|
|
@ -35,7 +35,7 @@ var Product core.ProdInfo
|
||||||
func init() {
|
func init() {
|
||||||
Product.Major = "1"
|
Product.Major = "1"
|
||||||
Product.Minor = "47"
|
Product.Minor = "47"
|
||||||
Product.Patch = "0"
|
Product.Patch = "1"
|
||||||
Product.Version = fmt.Sprintf("%s.%s.%s", Product.Major, Product.Minor, Product.Patch)
|
Product.Version = fmt.Sprintf("%s.%s.%s", Product.Major, Product.Minor, Product.Patch)
|
||||||
Product.Edition = "Community"
|
Product.Edition = "Community"
|
||||||
Product.Title = fmt.Sprintf("%s Edition", Product.Edition)
|
Product.Title = fmt.Sprintf("%s Edition", Product.Edition)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue