We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1986
    • 2 Posts
    Hi yama,

    I am also experiencing the issue mentioned below.
    It does seem that it is a bug in CKeditor v3.3 (see http://drupal.org/node/812872 and the bug report at http://dev.fckeditor.net/ticket/5780). The bug has now been fixed (along with some others) in version 3.3.1 (see the What’s New page: http://ckeditor.com/whatsnew)

    Would you be able to make a package for MODx with v3.3.1?

    Many thanks for all your work on this!

    Quote from: yama at Jun 02, 2010, 02:29 PM

    Quote from: kamalito at Jun 02, 2010, 01:21 PM

    Hi yama
    I’ve just installed the last release.
    I have a strange behavior when I try to create a link on a file.
    When I try to make a link on a text (let’s say "my link"), sometimes the link works fine and some other times the text "my link" is replaced with the URL to the file.
    Can you reproduce that too?
    Regards
    Maybe, it is CKEditor’s bug.

    http://ckeditor.com/demo
    for example, try same test.

    height parameter issue...what kind of error is displayed?

    • Quote from: araucaria at Jul 01, 2010, 10:23 AM

      Would you be able to make a package for MODx with v3.3.1?
      OK, its easy. Wait a little.
          • 1986
          • 2 Posts
          Many thanks yama! That works brilliantly!
            • 15770
            • 3 Posts
            I am a ModX Newbie and I am trying to get CK Editor into ModX. I downloaded the version from the link you provided above and went through all the steps when I go to save the ckeditor.tpl file in ModX it give me this error

            ckeditor - OnRichTextEditorRegister
            An error occurred while loading. Please see the event log for more information.

            Parse error: syntax error, unexpected ’<’ in /mysite/manager/includes/document.parser.class.inc.php(746) : eval()’d code on line 1
            ckeditor - OnInterfaceSettingsRender
            An error occurred while loading. Please see the event log for more information.

            Parse error: syntax error, unexpected ’<’ in /mysite/manager/includes/document.parser.class.inc.php(746) : eval()’d code on line 1

            Could anyone help me with this? Not sure what this means and what I need to do to move forward.

            I also tried downloading CkEditor’s newest version off their site and trying it that way but that did not work as well. Augh!! Frustrating...but this forum has helped me a lot so far...Thanks so much!!
            • Plugin code can’t begin with the <?php or end with ?>; these are often included in code intended to be copy/pasted for syntax highlighting, but they have to be removed from the actual plugin.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 15770
                • 3 Posts
                Ok I tried that and now this error is coming up...

                Error 501: The server cannot complete the request because it encounters an error

                Header values specify a configuration that is not implemented.

                ModSecurity, web application firewall, possible secure attack prevention.



                ????????? What do I do next? Thanks!!
                  • 4420
                  • 60 Posts
                  I wonder why this thread has gone quiet when there is a new 3.4 full release of ckeditor?

                  I’m too much of a noob to tackle integrating this myself, but if someone would like to tell me how to integrate with evo 1.04 that would be real good!
                    • 4420
                    • 60 Posts
                    I spent quite a bit of time trying to get this to work the way I want, not with complete success, so I just thought I would set out what I found to save others some time and solicit input from others more able than I.

                    Unless I am much mistaken, I imagine what I want it to do is pretty similar to what others want it to do, but for the sake of clarity here is what I want:
                    1. it should read my site’s css file and display the editable content formatted accordingly
                    2. It should allow the user to select styles from my site css file to apply to content they create

                    I haven’t been able to achieve this and, if anyone has I would really like to know how they did it.

                    However, I agree with others that CKeditor seems a superior editor - especially for enabling content editing for end users. It’s clean, effective and is easy to restrict the functionality available to an appropriate sub-set.

                    I am running modx evo 1.0.4. with the default selection of all the bits but no sample site. I installed CKeditor by following the instructions at
                    http://codingpad.maryspad.com/2010/02/21/setting-up-ckeditor-on-modx-evolution/
                    which uses the package provided by Yama - but note that the image pointed to here
                    http://code.google.com/p/modx-ja/downloads/detail?name=ckeditor31-test.zip is deprecated and has been superceded by
                    http://code.google.com/p/modx-ja/downloads/detail?name=ckeditor331-alpha.zip
                    ...which is the version I used. I installed following the instructions at maryspad and that all went fine. I have a working editor that I can use in the manager or within quickmanager, and I can load images from within it - though that seems to hand over to the FCKeditor resources browser integrated in evo to do the work.

                    I can also customise the functionality set of the editor. The file
                    /assets/plugins/ckeditor/modx_config.js contains three configs: config.toolbar_modx, config.toolbar_full and config.toolbar_simple. I haven’t figured out how to switch between these, but I have found that if I hack the list at config.toolbar_modx, that gets applied.

                    So far as trying to get it to read my CSS goes, einsteinboi posted a link to http://www.gregorysmart.com/2010/02/25/modx-ckeditor/
                    which purports to enable this, but I could not get it to work.
                    Firstly I do not have the ckeditor/custom_config.php file referred to, and attempts I made to insert the code elsewhere were unsuccessful.
                    This is the bit I would really like to get to work, so if anyone knows how, please tell me!

                    There is documentation on styles at http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles but the reference it makes to using an external styles definition file seems to be about defining styles to be implemented as inline code by the editor, rather than the editor understanding and displaying as indicated by an external style sheet. The file location it refers to is not present on my install. The minified JavaScript file on my install is at assets/plugins/ckeditor/ckeditor/plugins/styles/styles/default.js

                    The CSS setting CKEDITOR.config.contentsCss is documented at
                    http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.contentsCss
                    which leads me to believe that it should be possible to achieve what I want, but I have not yet had success!

                    I too dislike the output formatting applied as default by the editor. The doc at
                    http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Output_Formatting
                    indicates that there is a great deal of control available over this, but again I have not been able to implement this within the modx context and would welcome any guidance on how to do so. Now that Google is encouraging us to minify our code, my ideal would be that the output code was more or less minified but that it displayed as elegantly indented code when you click on the code button.

                    http://docs.cksource.com/ckeditor_api/ seems to be a good source of info.

                    Any guidance gladly accepted!
                      • 4420
                      • 60 Posts
                      OK - I’ve got it. I can answer my own question. I should have been more observant! embarrassed

                      If I go into create/edit plugin, there is the following near the head (as copied from ckeditor.tpl)
                      include_once $cke_path . 'functions.php';
                      		$params['manager_language'] = $modx->config['manager_language'];
                      		$params['use_editor']       = $modx->config['use_editor'];
                      		$params['format_tags']      = $format_tags;
                      		$params['elements']         = $elements;
                      		$params['width']            = $width;
                      		$params['height']           = (!empty($height)) ? str_replace('px', '', $height) .'px' : '300px';
                      		$params['editor_css_path']  = '';
                      //		$params['editor_css_path']  = $modx->config['editor_css_path'];
                      		$params['cke_dir']          = $cke_dir;
                      		$params['cke_path']         = $cke_path;
                      
                      

                      and if I enter a path (from /assets...) between the single quotes at ’editor_css_path’ it reads my css and displays accordingly.

                      Just what I always wanted!