mirror of
https://github.com/documize/community.git
synced 2025-07-26 00:29:47 +02:00
markdown edge-case
This commit is contained in:
parent
991b1a2740
commit
9d2f0cb0ba
4 changed files with 596 additions and 593 deletions
|
@ -54,7 +54,9 @@ export default Ember.Component.extend({
|
||||||
actions: {
|
actions: {
|
||||||
onInsertLink(link) {
|
onInsertLink(link) {
|
||||||
let linkMarkdown = this.get('link').buildLink(link);
|
let linkMarkdown = this.get('link').buildLink(link);
|
||||||
|
|
||||||
miscUtil.insertAtCursor($("#section-markdown-editor")[0], linkMarkdown);
|
miscUtil.insertAtCursor($("#section-markdown-editor")[0], linkMarkdown);
|
||||||
|
this.set('pageBody', $("#section-markdown-editor").val());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,6 +47,7 @@ export default Ember.Service.extend({
|
||||||
allowAnonymousAccess: true,
|
allowAnonymousAccess: true,
|
||||||
setupMode: true
|
setupMode: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.get('localStorage').clearAll();
|
this.get('localStorage').clearAll();
|
||||||
|
|
||||||
return resolve(this);
|
return resolve(this);
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<label>Search</label>
|
<label>Search</label>
|
||||||
<div class="tip">For content or attachments</div>
|
<div class="tip">For content or attachments</div>
|
||||||
{{focus-input id="content-linker-search" type="input" value=keywords placeholder="keyword search"}}
|
{{focus-input id="content-linker-search" type="input" value=keywords placeholder="keyword search" autocomplete="off"}}
|
||||||
</div>
|
</div>
|
||||||
{{#unless hasMatches}}
|
{{#unless hasMatches}}
|
||||||
Nothing found.
|
Nothing found.
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue