We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Quote from: xwisdom

    This means that the RichText Summary will have a height of 400px by default but you can however and code to the plugin to rectify this problem

    I’ll take a look at it but remember that this is only for the FCKEditor. If you’re using other editor it adjust those.


    Is there any progress?
      • 32963
      • 1,732 Posts
      Quote from: Mark at Sep 11, 2005, 08:12 AM

      Is there any progress?

      Hi Mark,

      I’ll get back to this one real soon.

        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 32963
        • 1,732 Posts
        Here we go. This will reduce the height and width of the FCKEditor for the Summary field:
        global $replace_richtexteditor;
        $replace_richtexteditor[] = "introtext";
        
        $html = '<script>'.
        'document.mutate.introtext.style.height="100px";'.
        'setTimeout("adJustIntrotextSize()",500);'.
        'function adJustIntrotextSize(){'.
        '   var o = document.getElementById("introtext___Frame");'.
        '   if(o) {o.style.height="130px";o.style.width="300px"}'.
        '}'.
        '</script>';
        $modx->event->output($html);
          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 18397
          • 3,250 Posts
          Sweet, works like a charm.

          Also, is there any way to alter the toolbar layout (say use a custom toolbar) only for the summary?
            • 32963
            • 1,732 Posts
            I think there is. You might want to try and play with the "oFCKintrotext" javascript fck instance.
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 18397
              • 3,250 Posts
              Quote from: xwisdom at Sep 12, 2005, 03:21 AM

              I think there is. You might want to try and play with the "oFCKintrotext" javascript fck instance.

              huh

              Sorry, I am new to FCK Editor (I previously used Xinha until it began to slow down).

              @Raymond

              How would this be implimented?
                • 4266
                • 70 Posts
                Quote from: xwisdom at Sep 12, 2005, 02:26 AM

                Here we go. This will reduce the height and width of the FCKEditor for the Summary field
                Thank you, Xwisdom!
                  • 18397
                  • 3,250 Posts
                  Quote from: xwisdom at Sep 12, 2005, 03:21 AM

                  I think there is. You might want to try and play with the "oFCKintrotext" javascript fck instance.

                  I have done a bit of research now regarding changing FCK Editor Toolbars and I have discovered the following:

                  You cannot (as far as I can tell) change the toolbar once FCK Editor has loaded and the toolbar must be set before the editor is generated.

                  So, I still cannot figure out how to get this to work. Any help would be welcome!
                    • 32963
                    • 1,732 Posts
                    Hmmm,

                    If we can’t change the toolbars after the editor is loaded then I guess this is where we have to stop until TP4 sad

                      xWisdom
                      www.xwisdomhtml.com
                      The fear of the Lord is the beginning of wisdom:
                      MODx Co-Founder - Create and do more with less.
                      • 18397
                      • 3,250 Posts
                      TP4.......eagerly awaiting...... smiley

                      @Raymond

                      What If we just minimized the toolbar like you do when you save a document.......... It would work for now....

                      -Mark