Skip to content

settings problem #7

@hayate

Description

@hayate

Hi dajare,

first of all thank you for the plug-in.

I think I found an issue, i am not able to save settings, and I think this is because in "CkeditorController.php" around line 99 there is this if statement:

if(empty($fileBrowserRootDir) || empty($fileBrowserRootUri) ) {
    Flash::set('error', 'CKEditor - '.__('one of the fields was empty, please try again!'));
    redirect(get_url('plugin/ckeditor/settings'));
 }

however in the view (settings.php) the div containing the field: fileBrowserRootDir is set to not visible (display:none) so users can never enter that field, so the if statement above always fails and we can't enable the File browser, or save any of the settings.

below the hidden div with the "fileBrowserRootDir" field, in settings.php.

 <div class="fieldset" style="padding: .5em 0;display: none;">
            <label for="fileBrowserRootDir" style="display:block"><?php echo __('Root files directory:');?> </label>
            <input name="fileBrowserRootDir" type="text" size="35" maxsize="255" value="<?php echo $fileBrowserRootDir;?>" style="padding: 4px 8px;"/>
            <p class="help" style="font-size:93%;padding-top:2px;margin-top:0;color: #666;font-style:italic">
                <?php echo __('Absolute path to images on disk, eg. <code>/home/user/www/public/images</code>');?>
            </p>
        </div>

hope it helps
cheers
andrea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions