>
> Thank you. But once again, the proper syntax is not included.
>

I got this to work. I am calling CKEditor as such.

<script type="text/javascript" charset="utf-8">
        //<![CDATA[
        $(function()
        {
                var config = {
                        customConfig : '/config/RichEditorConfig.js',
                        toolbar: 'clientFull',
                        height : 350
                };
        
                var editor = $('.jquery_ckeditor').ckeditor(config);
                CKFinder.setupCKEditor(null, "/admin/ckfinder/");
        
        });
        //]]>
</script>

In my external config file, RichEditorConfig.js, I define my settings
and I just added additional writer settings to work with some of the
tags. This is what it looks like:

CKEDITOR.editorConfig = function( config )
{
        config.forcePasteAsPlainText = true;
        config.pasteFromWordNumberedHeadingToList = true;
        config.pasteFromWordRemoveFontStyles = true;
        config.pasteFromWordRemoveStyles = true;
        config.disableNativeSpellChecker = false;
        config.filebrowserUploadUrl = '',
        config.filebrowserImageUploadUrl = '',
        config.filebrowserFlashUploadUrl = '',

        config.toolbar_clientFull =
        [
            ['Source'],
            ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print',
'SpellChecker', 'Scayt'],
            ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
            ['Link','Unlink','Anchor'],
            '/',
            
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
            
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Image','Table','HorizontalRule','SpecialChar','PageBreak'],
            '/',
            ['Styles','Format','Font','FontSize'],
            ['TextColor','BGColor'],
            ['Maximize', 'ShowBlocks','-','About']
        ];
        config.toolbar_clientMin =
        [
                
['TextColor','Bold','Italic','Underline','Strike','NumberedList','BulletedList','Link','Unlink','-','Source','Maximize']
        ] ;

        config.toolbar_idt =
        [
                
['Source','-','Cut','Copy','Paste','-','Undo','Redo','-','Find','Replace','-','SpecialChar','-','About'],
                
['Bold','Italic','Underline','Rule','-','JustifyCenter','JustifyRight','UnorderedList','OrderedList','-','Outdent','Indent','-','Table','Link','Unlink','Anchor','-','TextColor','BGColor'],
                ['FontFormat','FontName','FontSize','Templates']
        ] ;
        config.toolbar_idtMin =
        [
                
['Cut','Copy','Paste','-','Undo','Redo','-','Bold','Italic','Underline','Rule','-','JustifyCenter','JustifyRight','UnorderedList','OrderedList','-','Outdent','Indent','-','Link','Unlink'],
                ['FontFormat','FontName','FontSize','Templates']
        ] ;
};

CKEDITOR.on( 'instanceReady', function( ev )
                {
                        ev.editor.dataProcessor.writer.setRules('cfinvoke',
                                {
                                        indent                  : false,
                                        breakBeforeOpen : true,
                                        breakAfterOpen  : false,
                                        breakBeforeClose: false,
                                        breakAfterClose : true
                                }
                        );
                        ev.editor.dataProcessor.writer.setRules('output',
                                {
                                        indent                  : false,
                                        breakBeforeOpen : true,
                                        breakAfterOpen  : false,
                                        breakBeforeClose: false,
                                        breakAfterClose : true
                                }
                        );
                        ev.editor.dataProcessor.writer.setRules('cfinclude',
                                {
                                        indent                  : false,
                                        breakBeforeOpen : true,
                                        breakAfterOpen  : false,
                                        breakBeforeClose: false,
                                        breakAfterClose : true
                                }
                        );
                        ev.editor.dataProcessor.writer.setRules('p',
                                {
                                        indent                  : true,
                                        breakBeforeOpen : true,
                                        breakAfterOpen  : false,
                                        breakBeforeClose: false,
                                        breakAfterClose : true
                                }
                        );
                });


Hope this helps,

Dean



-- 
---------------------------------------------------------------------------
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349418
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to