1
I need a hack for wfsection that enables to use WYSIWYG editor from ordinary submit article (not from admin panel) procedure.
I modified submit.php to enable to edit pages, but this hack cannot save pages to database :(
here is the hack:
case 'form':
default:
include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfscategory.php");
include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfsarticle.php");
include XOOPS_ROOT_PATH.'/header.php';
$article = new WfsArticle();
$article->editform();
include XOOPS_ROOT_PATH.'/footer.php';