provide editor settings

This commit is contained in:
Mario Vavti 2018-09-21 20:57:01 +02:00
parent 9638bf2b1e
commit 8efa103041
3 changed files with 11 additions and 8 deletions

View File

@ -31,7 +31,7 @@
position: relative; position: relative;
} }
#profile-jot-reset { #profile-jot-tools {
position: absolute; position: absolute;
top: 0px; top: 0px;
right: 0px; right: 0px;

View File

@ -7,7 +7,7 @@ var pretext = '{{$pretext}}';
function initEditor(cb){ function initEditor(cb){
if(editor == false){ if(editor == false){
$("#profile-jot-text-loading").show(); $("#profile-jot-text-loading").show();
$("#profile-jot-reset").removeClass('d-none'); $("#profile-jot-tools").removeClass('d-none');
{{$geotag}} {{$geotag}}
if(plaintext == 'none') { if(plaintext == 'none') {
$("#profile-jot-text-loading").hide(); $("#profile-jot-text-loading").hide();
@ -308,7 +308,7 @@ var activeCommentText = '';
{{if $reset}} {{if $reset}}
$(".jothidden").hide(); $(".jothidden").hide();
$("#profile-jot-text").removeClass('jot-expanded'); $("#profile-jot-text").removeClass('jot-expanded');
$("#profile-jot-reset").addClass('d-none'); $("#profile-jot-tools").addClass('d-none');
$("#jot-preview-content").html('').hide(); $("#jot-preview-content").html('').hide();
editor = false; editor = false;
{{else}} {{else}}

View File

@ -42,11 +42,14 @@
</div> </div>
{{/if}} {{/if}}
<div id="jot-text-wrap"> <div id="jot-text-wrap">
{{if $reset}} <div id="profile-jot-tools" class="btn-group d-none">
<button id="profile-jot-reset" class="btn btn-outline-secondary btn-sm d-none border-0" title="{{$reset}}" onclick="itemCancel(); return false;"> <a id="profile-jot-settings" class="btn btn-outline-secondary btn-sm border-0" href="/settings/editor/?f=&rpath=/{{$return_path}}"><i class="fa fa-cog"></i></a>
<i class="fa fa-close"></i> {{if $reset}}
</button> <button id="profile-jot-reset" class="btn btn-outline-secondary btn-sm border-0" title="{{$reset}}" onclick="itemCancel(); return false;">
{{/if}} <i class="fa fa-close"></i>
</button>
{{/if}}
</div>
<textarea class="profile-jot-text" id="profile-jot-text" name="body" tabindex="2" placeholder="{{$placeholdtext}}" >{{$content}}</textarea> <textarea class="profile-jot-text" id="profile-jot-text" name="body" tabindex="2" placeholder="{{$placeholdtext}}" >{{$content}}</textarea>
</div> </div>
{{if $attachment}} {{if $attachment}}