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:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2014, Tomasz Sowa
|
||||
* Copyright (c) 2008-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -36,14 +36,10 @@
|
||||
#include "functions.h"
|
||||
|
||||
|
||||
|
||||
namespace Winix
|
||||
namespace Winix::Fun
|
||||
{
|
||||
|
||||
|
||||
namespace Fun
|
||||
{
|
||||
|
||||
Ckeditor::Ckeditor()
|
||||
{
|
||||
fun.url = L"ckeditor";
|
||||
@@ -57,7 +53,16 @@ void Ckeditor::init()
|
||||
|
||||
bool Ckeditor::has_access()
|
||||
{
|
||||
return functions->fun_emacs.has_access();
|
||||
FunctionBase * emacs = functions->Find(L"emacs");
|
||||
|
||||
if( emacs )
|
||||
{
|
||||
return emacs->has_access();
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,13 +78,20 @@ void Ckeditor::make_get()
|
||||
|
||||
void Ckeditor::make_post()
|
||||
{
|
||||
functions->fun_emacs.make_post();
|
||||
}
|
||||
FunctionBase * emacs = functions->Find(L"emacs");
|
||||
|
||||
if( emacs )
|
||||
{
|
||||
emacs->make_post();
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log2 << "Ckeditor: I cannot save your content, there is no emacs function available" << logend;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace Winix
|
||||
|
||||
|
Reference in New Issue
Block a user