We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33014 ☆ A M B ☆
    • 1,231 Posts
    LinkList

    I coped DBAPI
    function doSql($sql)
    {
        global $modx;
    
        $result = $modx->db->query($sql);
        $resourceArray = array();
        for($i=0; $i < $modx->db->getRecordCount($result); $i++)
        {
            $par = $modx->db->getRow($result, 'assoc');
            array_push($resourceArray, $par);
        }
    	
        return $resourceArray;
    }


    and output http header.

    header('Content-type: text/javascript'); // browser will now recognize the file as a valid JS file
    
    // prevent browser from caching
    header('pragma: no-cache');
    header('expires: 0'); // i.e. contents have already expired
    
    echo $output;
    

    http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/external_image_list_url

    http://code.google.com/p/modx-ja/downloads/detail?name=tinymce.linklist.zip
    feedback please.
      • 33014 ☆ A M B ☆
      • 1,231 Posts
      http://tinymce.moxiecode.com/download.php
      http://tinymce.moxiecode.com/punbb/viewtopic.php?id=20665
      TinyMCE 3.3 Released

      http://code.google.com/p/modx-ja/downloads/detail?name=tinymce330_for_modx.zip
      And updated for MODx.

      Updated: Language files
      - Where: lang -folder

      Modified: Editor css path from MODx configuration
      - Where: plugin code, tinymce.functions.php, js/mce_init.js.inc
      - Notes: CSS merge method in use array implode function

      Modified: Link list
      - Where: inc/tinymce.linklist.php
      - Notes: Use DBAPI method and some...

      feedback please... smiley
        • 16610
        • 634 Posts
        I’ll test it on monday. Thanks again!
          Mikko Lammi, Owner at Maagit
          • 33014 ☆ A M B ☆
          • 1,231 Posts
          add chunk mode

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

          forced_root_block                : '[+forced_root_block+]',
          force_p_newlines                 : [+force_p_newlines+],


          $ph['forced_root_block']       = ($action !== '78') ? 'p' : '';
          $ph['force_p_newlines']        = ($action !== '78') ? 'true' : 'false';


          http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/forced_root_block
          http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/force_p_newlines
          reference.

          How?


          add

          http://code.google.com/p/modx-ja/downloads/detail?name=tinymce_arrange_params.zip
          params arranged.
            • 16610
            • 634 Posts
            Tested TinyMCE 3.3 and everything worked! Great work!

            I think this is ready to be published / added to repository.

            Only thing that is missing is a short installation instructions for users who are not so familiar with MODx plugins. I can write installation instructions if needed.

            TinyMCE 3.2.4.1 (older version) has also a separate installation feature but I’m not sure if it’s really needed.

              Mikko Lammi, Owner at Maagit
              • 33014 ☆ A M B ☆
              • 1,231 Posts
              Yes, I also think so. Thank you very much. smiley
                • 5532
                • 251 Posts
                Keen as a bean to use this version as it fixes lots of display errors - would it be possible to post here so we know when it’s in the repository?

                Cheers
                  • 25663 MODX Staff
                  • 12,272 Posts
                  We’re working on a patch release to MODx Evo (1.0.3) and this would be very welcome indeed.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 4018
                    • 1,131 Posts
                    Yama, let me know when you feel this is out of RC. I’ve tested your plugin and it appears to work fine. However, I’d like it to be out of RC before injecting it into the next Evo build. smiley

                    BTW, great job on the plugin! I’ve been meaning to make this a class-based plugin for some time. Got some ideas for improvement. Will ping you with them later. laugh
                      Jeff Whitfield

                      "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                      • 33014 ☆ A M B ☆
                      • 1,231 Posts
                      TinyMCE 3.3.2 release.

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

                      I decided not to wrap it in a p tag in chunk code.
                      and not centering image ... huh ... (I am weak english. please try centering button img tag.)

                      and TinyMCE core updates.

                      http://tinymce.moxiecode.com/punbb/viewtopic.php?id=20842
                      http://tinymce.moxiecode.com/punbb/viewtopic.php?id=20754
                      http://tinymce.moxiecode.com/punbb/viewtopic.php?id=20665

                      Version 3.3.2 (2010-03-25)
                      Fixed bug where it was possible to scale the editor iframe smaller than the editor UI.
                      Fixed bug where some of the resizing option didn’t work with the new live resize.
                      Fixed bug where the format listbox didn’t show nestled formats correctly.
                      Fixed bug where the native listboxes didn’t work correctly.
                      Fixed bug where font size selection in using the legacyoutput plugin would produce errors.
                      Fixed so block and blockquote formats remove their matching element regardless of it’s attributes.
                      Version 3.3.1 (2010-03-18)
                      Added new live resize feature, the editor contents is now visible while resizing.
                      Fixed bug where some valid_element patterns would produce an unknown property error.
                      Fixed bug where it wasn’t possible to toggle off blockquotes.
                      Fixed bug where an undo level wasn’t produced when applying formatting using the styles dropdown.
                      Fixed bug where IE 6/7 wouldn’t perform caret formatting due to a focus/event bug in IE.
                      Fixed bug where undo/redo wasn’t restoring the previous selection correctly.
                      Fixed bug where the caret would become invisible if you resized the editor in latest Gecko.
                      Fixed bug where the class attribute wasn’t completely removed in IE 6/7 when the removeClass function was used.
                      Fixed so the matchNode method of the Formatter class returns the matched format rule.
                      Fixed so it’s possible to apply formatting to both blocks and as inline elements.
                      Version 3.3 (2010-03-10)
                      Fixed bug where backspace on a table on IE would produce an empty tbody and some JS exceptions.
                      Fixed bug where some redundant children wasn’t removed properly when applying inline styles to them.
                      Fixed bug where Chrome would produce incorect dialog sizes if the inlinepopups plugin wasn’t used.
                      Fixed bug where spans with different classes would get merged if they where siblings to each other.
                      Fixed bug where IE 8 would crash if you used the spellchecker.
                      Fixed bug where Input Method for non western languages didn’t work correctly.
                      Fixed bug where the UI would render incorrectly in FF 3.6 on Mac due to a bug n their rendering engine.
                      Fixed bug where WebKit wouldn’t scroll down correctly if Shift+Enter was used. Patch contributed by Thomas Andersen.