We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8609
    • 607 Posts
    Quote from: cipa at Feb 24, 2010, 08:42 PM

    Is it worth switching to CK from TinyMce. Thx

    I just switched a few site to CK and I like it a lot better. However, you lose the ability to directly add MODx weblinks like you can in TinyMCE, which is a nice convenience to have. That’s the only disadvantage I see so far
      • 23299
      • 1,161 Posts
      Interesting…

      Two things about the generated code:

      This RTE still adds unwanted tags around snippets and chunks. It also creates really ugly gaps in basic headline and paragraph code. Like this:
      <h3>
      
      
                  headline h3 goes here</h3>





      I see that this editor works better with table content. But if you do not use tables what are the advantages over using TinyMCE?

      Thanks!
        • 8609
        • 607 Posts
        Quote from: Photowebmax at Feb 26, 2010, 11:17 AM

        Interesting…

        Two things about the generated code:

        This RTE still adds unwanted tags around snippets and chunks. It also creates really ugly gaps in basic headline and paragraph code. Like this:
        <h3>
        
        
                    headline h3 goes here</h3>





        I see that this editor works better with table content. But if you do not use tables what are the advantages over using TinyMCE?

        Thanks!

        Take a look at http://www.gregorysmart.com/2010/02/25/modx-ckeditor/, you can make it work with your own CSS file. I replied to your comment on my post.
          • 16895
          • 87 Posts
          OK, I’ve discovered what the problem is thanks to an old post on Stackoverflow. Essentially, in Internet Explorer you aren’t able to (easily) select text inside elements with a width applied. I’ve solved this for now by fiddling my editor css file. There’s a patch, but I don’t know how to apply it.

          Also, CKEditor 3.2 has been released: any way to update?
            • 33014 ☆ A M B ☆
            • 1,231 Posts
            Quote from: legio_noctis at Feb 26, 2010, 12:18 PM

            Also, CKEditor 3.2 has been released: any way to update?

            OK, I release it

            http://code.google.com/p/modx-ja/downloads/detail?name=ckeditor32-alpha.zip
            CKEditor 3.2 alpha for MODx Evo


            Quote from: gerritvanaaken at Feb 24, 2010, 02:10 PM

            Thank you so much, works like a charme so far!

            How can I reduce the number of options in the "Format" select field? I would like to only have "Headline 2" and "Headline 3"...




            I start it in the following these task.

            $params[’toolbarcustom’]
            $params[’use_browser’]
            $params[’width’]
            $params[’height’]
            $params[’language’]
            $params[’autoLang’]
            $params[’editor_css_path’]
            $params[’toolbarset’]

            and please, other ideas. smiley

            Quote from: einsteinsboi at Feb 24, 2010, 09:53 PM

            I just switched a few site to CK and I like it a lot better. However, you lose the ability to directly add MODx weblinks like you can in TinyMCE, which is a nice convenience to have. That’s the only disadvantage I see so far

            mmmmm...I challenge it.
              • 23299
              • 1,161 Posts
              I like your attitude!
                • 10713
                • 41 Posts
                @yama: Reducing the format options works well!

                Now I would love to define a range of HTML Classes that can be included in DIV or P elements. My clients should be able to select a class like "image-left" or "teaser" and thus formatting the content without using evil direct styling like text-color or layout tables.

                You do a great job! Thank you!
                  • 16895
                  • 87 Posts
                  Thanks! Will try it out now.

                  Is it just a standard set of changes that you make to every release? In that case might it be worth documenting these so that anybody could take over keeping this project up to date? (just in case!)
                    • 16895
                    • 87 Posts
                    @gerritvanaaken You can add your own classes by modifying ckeditor.functions.php. I have, for example, added:
                    			$ckInstances .= "CKEDITOR.addStylesSet( 'my_styles'," . PHP_EOL;
                    			$ckInstances .= "[" . PHP_EOL;
                    			$ckInstances .= "{ name : 'Heading 3 Date', element : 'h3', attributes : { 'class' : 'date' } }," . PHP_EOL;
                    			$ckInstances .= "{ name : 'Continue link', element : 'p', attributes : { 'class' : 'continue' } }," . PHP_EOL;
                    			$ckInstances .= "{ name : 'Clear Formatting', element : 'p' }, " . PHP_EOL;
                    			$ckInstances .= "{ name : 'Help link', element : 'p', attributes : { 'class' : 'help' } }" . PHP_EOL;
                    			$ckInstances .= "]);" . PHP_EOL;


                    You should also be able to use the config.js file for this, and it would certainly be easier to maintain without having to do all the variable juggling, but I can’t get it to work at the moment.
                      • 33014 ☆ A M B ☆
                      • 1,231 Posts
                      Quote from: legio_noctis at Feb 28, 2010, 02:59 PM

                      Thanks! Will try it out now.

                      Is it just a standard set of changes that you make to every release? In that case might it be worth documenting these so that anybody could take over keeping this project up to date? (just in case!)

                      OK, I write a document to cut it in a share together. Wait a little.
                      (Had better I write it in official wiki?)

                      and

                      http://code.google.com/p/modx-ja/downloads/detail?name=ckeditor32-alpha2.zip

                      see, user_config.js and System configuration’s toolbar set ’custom’.
                      This name is free, usable other than the ’custom’.
                      And you can add as some toolbars set and configs.

                      http://docs.cksource.com/CKEditor_3.x/Developers_Guide
                      Reference

                      I’m sorry my English is poooooooooorness. embarrassed