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:
2024-07-20 15:13:27 +02:00
parent 89b37db48e
commit e63838faeb
27 changed files with 1075 additions and 496 deletions

View File

@@ -40,11 +40,7 @@
#include "space/spaceparser.h"
namespace Winix
{
namespace Fun
namespace Winix::Fun
{
@@ -54,10 +50,10 @@ public:
Env();
bool has_access();
void make_post();
void make_get();
void clear();
bool has_access() override;
void make_post() override;
void make_get() override;
void clear() override;
private:
@@ -66,13 +62,13 @@ private:
pt::Space space;
UserWrapper user_wrapper;
bool EditAdminEnv(const std::wstring & env_str);
bool EditEnv(const std::wstring & env_str);
bool edit_admin_env(const std::wstring & env_str);
bool edit_env(const std::wstring & env_str);
bool Parse(const std::wstring & env_str);
void SaveEnv();
bool parse(const std::wstring & env_str);
void save_env();
void RegisterModels();
void register_models();
};
@@ -80,6 +76,4 @@ private:
} // namespace
} // namespace Winix
#endif