To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4488

Show
Ignore:
Timestamp:
01/20/12 14:54:20 (4 months ago)
Author:
kerry
Message:

Format types for CKEditor can now be set in app.yml

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheCkEditorPlugin/trunk/lib/editor/aEditorCk.class.php

    r4360 r4488  
    165165 
    166166    $ckEditor->config['toolbar'] = $toolbar; 
    167     $ckEditor->config['format_tags'] = sfConfig::get('app_a_ckEditor_format_tags', 'p;h3;h4;h5;h6;pre'); 
     167    $ckEditor->config['format_tags'] = sfConfig::get('app_a_ckEditor_format_tags', isset($ckEditor->config['format_tags']) ? $ckEditor->config['format_tags'] : 'p;h3;h4;h5;h6;pre'); 
    168168    // We have to clobber the editor if CKEditor thinks it already exists. It would be nice to reuse it 
    169169    // but we already pulled it out of the DOM to work with Apostrophe's refresh model for edit views.