mirror of
https://github.com/documize/community.git
synced 2025-08-02 12:05:23 +02:00
moved emberjs to gui folder
This commit is contained in:
parent
6a18d18f91
commit
dc49dbbeff
999 changed files with 677 additions and 651 deletions
19
gui/app/templates/components/section/code/type-editor.hbs
Normal file
19
gui/app/templates/components/section/code/type-editor.hbs
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{#section/base-editor-inline document=document folder=folder page=page tip="Concise name that describes code snippet" isDirty=(action 'isDirty') onCancel=(action 'onCancel') onAction=(action 'onAction')}}
|
||||
<div class="section-code-editor">
|
||||
<div class="syntax-selector">
|
||||
{{ui-select id=syntaxId
|
||||
content=syntaxOptions
|
||||
action=(action 'onSyntaxChange')
|
||||
optionValuePath="mode"
|
||||
optionLabelPath="name"
|
||||
selection=codeSyntax}}
|
||||
</div>
|
||||
<style>
|
||||
.CodeMirror {
|
||||
height: auto !important;
|
||||
font-size: 17px;
|
||||
}
|
||||
</style>
|
||||
{{focus-textarea value=pageBody id=editorId class="mousetrap"}}
|
||||
</div>
|
||||
{{/section/base-editor-inline}}
|
|
@ -0,0 +1,4 @@
|
|||
<style>
|
||||
.CodeMirror { height: auto !important;}
|
||||
</style>
|
||||
<textarea id="page-{{page.id}}-code" value={{codeBody}}></textarea>
|
Loading…
Add table
Add a link
Reference in a new issue