We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Cant Save HTML Widget | Forum

Andi
Andi Dec 25 '15
Hey there. When I'm trying to save an edited HTML Widget. nothing happens. What should i do? Q__Q
Andi
Andi Dec 25 '15
When I click on the Savebutton i dont get any response. Which module is for that thing responsible?
Tecca
Tecca Dec 25 '15
Do you have the Site CKEditor installed?
Andi
Andi Dec 25 '15

Quote from Bryan Do you have the Site CKEditor installed?
Jup.
Tecca
Tecca Dec 25 '15
That's the problem. The plugin doesn't work correctly in the latest versions of Oxwall.
Tecca
Tecca Dec 25 '15
To keep the plugin, you can remove it from the customizer area so that you can save widgets as normal. Open site_ckeditor/init.php

Lines 2-16:
function siteckeditor_on_finalize(){
    $requri = OW::getRequest()->getRequestUri();

    $ck_enabled = false;
    if((strpos($requri ,'edit') !== false && strpos($requri ,'admin') === false) ||
        (strpos($requri ,'add') !== false && strpos($requri ,'admin') === false) ||
        strpos($requri ,'create') !== false ||
        strpos($requri ,'new') !== false ||
strpos($requri ,'customize') !== false ||
        strpos($requri ,'admin/pages') !== false ||
        strpos($requri ,'admin/mass-mailing') !== false ||
        strpos($requri,'forum/topic/') !== false){
       
        $ck_enabled = true;
    }

Replace that with:

function siteckeditor_on_finalize(){
    $requri = OW::getRequest()->getRequestUri();

    $ck_enabled = false;
    if((strpos($requri ,'edit') !== false && strpos($requri ,'admin') === false) ||
        (strpos($requri ,'add') !== false && strpos($requri ,'admin') === false) ||
        strpos($requri ,'create') !== false ||
        strpos($requri ,'new') !== false ||
        strpos($requri ,'admin/mass-mailing') !== false ||
        strpos($requri,'forum/topic/') !== false){
       
        $ck_enabled = true;
    }
Andi
Andi Dec 25 '15

Quote from Bryan To keep the plugin, you can remove it from the customizer area so that you can save widgets as normal. Open site_ckeditor/init.php

Lines 2-16:
function siteckeditor_on_finalize(){
    $requri = OW::getRequest()->getRequestUri();

    $ck_enabled = false;
    if((strpos($requri ,'edit') !== false && strpos($requri ,'admin') === false) ||
        (strpos($requri ,'add') !== false && strpos($requri ,'admin') === false) ||
        strpos($requri ,'create') !== false ||
        strpos($requri ,'new') !== false ||
strpos($requri ,'customize') !== false ||
        strpos($requri ,'admin/pages') !== false ||
        strpos($requri ,'admin/mass-mailing') !== false ||
        strpos($requri,'forum/topic/') !== false){
       
        $ck_enabled = true;
    }

Replace that with:

function siteckeditor_on_finalize(){
    $requri = OW::getRequest()->getRequestUri();

    $ck_enabled = false;
    if((strpos($requri ,'edit') !== false && strpos($requri ,'admin') === false) ||
        (strpos($requri ,'add') !== false && strpos($requri ,'admin') === false) ||
        strpos($requri ,'create') !== false ||
        strpos($requri ,'new') !== false ||
        strpos($requri ,'admin/mass-mailing') !== false ||
        strpos($requri,'forum/topic/') !== false){
       
        $ck_enabled = true;
    }
Worked like a Charm! Thanks alot!
Alex Thorn
Alex Thorn May 11 '16
Worked like a charm thanks
ross Team
ross May 11 '16
Bryan thanks for sharing. 
Eric
Eric Sep 20 '17
Glad I found this post, I was stuck with the same problem. Thanks Bryan for the solution.