improve frontend of emacs, ckeditor, tinymce, nicedit, meta and env functions
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
This commit is contained in:
@@ -62,13 +62,30 @@
|
||||
|
||||
<input type="hidden" name="userid" value="[env_user.user.id]">
|
||||
|
||||
<div class="uk-margin">
|
||||
<input class="uk-button uk-button-primary" type="submit" value="{change}">
|
||||
</div>
|
||||
<div class="uk-margin winix-env-status">
|
||||
[frame "env"]
|
||||
|
||||
[if winix_function_param_is "postredirect"]
|
||||
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
|
||||
[end]
|
||||
[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]env[if winix_function_param_is "a"]/a[end]/frame:env', '.winix-env-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>
|
||||
|
||||
|
Reference in New Issue
Block a user