added: a new editor: tinymce (function tinymce)
added: html filter can check orphans: "i", "a", "o" ... in a text git-svn-id: svn://ttmath.org/publicrep/winix/trunk@607 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -68,7 +68,8 @@ Ezc::Pattern * p = 0;
|
||||
{FUN_CKEDITOR, pat_fun_ckeditor},
|
||||
{FUN_SUBJECT, pat_fun_subject},
|
||||
{FUN_ADDUSER, pat_fun_adduser},
|
||||
{FUN_CP, pat_fun_cp}
|
||||
{FUN_CP, pat_fun_cp},
|
||||
{FUN_TINYMCE, pat_fun_tinymce},
|
||||
};
|
||||
|
||||
size_t i, len = sizeof(pat_name_tab)/sizeof(PatName);
|
||||
@@ -463,7 +464,7 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("winix_err_code", winix_err_code);
|
||||
functions.Insert("winix_is_err_in_locales", winix_is_err_in_locales);
|
||||
functions.Insert("winix_err_msg_from_locales",winix_err_msg_from_locales);
|
||||
|
||||
functions.Insert("winix_content_full", winix_content_full);
|
||||
|
||||
plugin.Call(WINIX_TEMPLATES_CREATEFUNCTIONS, &functions);
|
||||
}
|
||||
@@ -524,6 +525,7 @@ using namespace TemplatesFunctions;
|
||||
ReadFile(pat_fun_adduser, "fun_adduser.html");
|
||||
ReadFile(pat_fun_subject, "fun_subject.html");
|
||||
ReadFile(pat_fun_cp, "fun_cp.html");
|
||||
ReadFile(pat_fun_tinymce, "fun_tinymce.html");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace TemplatesFunctions
|
||||
pat_dir_last_info,
|
||||
pat_fun_subject,
|
||||
pat_fun_cp,
|
||||
pat_fun_tinymce,
|
||||
|
||||
pat_last // should be last
|
||||
};
|
||||
@@ -368,6 +369,7 @@ namespace TemplatesFunctions
|
||||
void winix_err_code(Info & i);
|
||||
void winix_is_err_in_locales(Info & i);
|
||||
void winix_err_msg_from_locales(Info & i);
|
||||
void winix_content_full(Info & i);
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
@@ -170,6 +170,12 @@ char buff[40];
|
||||
}
|
||||
|
||||
|
||||
void winix_content_full(Info & i)
|
||||
{
|
||||
if( request.pfunction )
|
||||
i.res = (request.pfunction->code == FUN_CKEDITOR || request.pfunction->code == FUN_TINYMCE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user