Improves in emacs: - use htmx to send content to the controller - show txt and formatted_txt content in the second panel - show two tabs if "tabs" winix parameter is used - add an option to show either one or two panels - correctly resize the editor window (F11) when two panels are shown Improves in ckeditor: - use htmx to send content to the controller - do not check automatically for ckeditor update Improves in tinymce/nicedit/meta/env: - use htmx to send content to the controller while here: - change PascalCase to snake_case in meta/env controllers - update CodeMirror editor to 5.65.16 - udpate Showdown (markdown to html converter) to 2.1.0
86 lines
2.0 KiB
HTML
86 lines
2.0 KiB
HTML
<div class="winix">
|
|
|
|
<h1>
|
|
[if winix_function_param_is "a"]
|
|
{meta_admin_header}
|
|
[else]
|
|
{meta_header}
|
|
[end]
|
|
</h1>
|
|
|
|
|
|
<form
|
|
action="[doc_base_url][dir][if request.is_item][item.url]/[end]meta[if winix_function_param_is "a"]/a[end]"
|
|
method="post"
|
|
class="uk-form-stacked"
|
|
>
|
|
|
|
<div class="uk-margin">
|
|
<label class="uk-form-label" for="winix_content_id">
|
|
[if winix_function_param_is "a"]
|
|
[if request.is_item]
|
|
{meta_admin_for_page}:
|
|
[else]
|
|
{meta_admin_for_dir}:
|
|
[end]
|
|
[else]
|
|
[if request.is_item]
|
|
{meta_for_page}:
|
|
[else]
|
|
{meta_for_dir}:
|
|
[end]
|
|
[end]
|
|
|
|
[# !! IMPROVE ME give some message if there is a root directory]
|
|
[item.url]
|
|
|
|
</label>
|
|
|
|
<div class="uk-form-controls">
|
|
<textarea class="uk-textarea" id="winix_content_id" rows="20" name="itemmeta">[ezc clear_all_white_nodes "yes"]
|
|
[if winix_function_param_is "a"]
|
|
[if request.last_item.content.is_admin_meta_object]
|
|
[request.last_item.content.admin_meta "dump_to_space" "pretty"]
|
|
[end]
|
|
[else]
|
|
[if request.last_item.content.is_meta_object]
|
|
[request.last_item.content.meta "dump_to_space" "pretty"]
|
|
[end]
|
|
[end]
|
|
[end]</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="uk-margin winix-meta-status">
|
|
[frame "meta"]
|
|
|
|
[if winix_function_param_is "postredirect"]
|
|
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
|
|
[end]
|
|
|
|
<div class="uk-margin-medium">
|
|
<button
|
|
class="uk-button uk-button-primary uk-width-1-1 uk-width-1-2@s uk-width-1-3@m wx-button-spinner"
|
|
type="submit"
|
|
hx-on:click="event.preventDefault(); winix_update_from_codemirror(this, '[doc_base_url][dir][if request.is_item][item.url]/[end]meta[if winix_function_param_is "a"]/a[end]/frame:meta', '.winix-meta-status')"
|
|
>
|
|
<span class="wx-button-spinner-text">
|
|
[if request.is_item]{change}[else]{add}[end]
|
|
</span>
|
|
<div class="wx-button-spinner-spinner">
|
|
<div uk-spinner="ratio: 0.5"></div>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
|
|
[end]
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|