We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32288
    • 5 Posts
    Found it:

    MODX_DIR/manager/includes/tmplvars.inc.php
    function renderFormElement()
    Around line 31 --
    field_html .= ’<textarea id="tv’.$field_name.’"...

    It’s set to 15 rows for the textarea, and you can change it to ~40 for a usability improvement.
      • 6726
      • 7,075 Posts
      I am switching from FCK to TinyMCE, since 0.9.5 has TinyMCE as a default and FCK produces garbage anyway...

      One dumb question : why does the editor load at the bottom of textareas and how to fix this ?
      I mean, the theme_advanced_toolbar_location : "top" is in the tinyMCE.init function, but it doesn’t seem to change anything...


      Edit: Hmmm, funny, when I switch to full featured, it does load on top... OK never mind, solved it : it seems default has only either full featured or simple ini, I added avanced and it worked.
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 10487 MODX Staff
        • 1,535 Posts
        David, do you mean the toolbar being displayed at the bottom? I think it depends on which theme is being used (simple, advanced, or full). Simple and Advanced display at the bottom, while Full-featured displays at the top.

        EDIT: Got my themes the wrong way round! Corrected now.
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com
          • 727
          • 502 Posts
          I’m having some problems with TinyMCE in rev 1581. I’m using the default full-featured mode.

          1. I switched to HTML view and entered an image link using:

          <img src="[(base_url)]asssets/images/foo.gif">


          This was "corrupted" by TinyMCE and doesn’t work. It was uuencoded to:

          <img src="/%7Eandy/verrette/manager/%5B%28base_url%29%5Dassets/images/logo.gif">


          2. When adding a link the ID and class items on the advanced tab don’t appear to do anything. I tried entering id and class names and then I checked the HTML and didn’t see them.

          3. When selecting a link and clicking on the link button, the URL field is blank rather than showing what the link is currently set to.

          4. In the user interface settings I have specified a CSS file. I can see it had some effect because my text is now centered (I have the body tag set to center everything in my CSS file). However the Styles List is still empty in both the toolbar and when editing a URL.

          It looks nice and loads quicker than FCKeditor but these problems are rather critical I think. Any help is appreciated!

          Update: I upgraded to the latest version 2.0.6.1 and I still have the same problems.

          Andy
            • 23050
            • 1,842 Posts
            Quote from: Bravado at Jul 11, 2006, 10:35 AM

            Doze, you pretty much have it right on the money. However, rather than using the valid_elements config setting, I think the extended_valid_elements config setting should be used instead. If you look at the plugin code, you’ll see a line like this:

            extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",


            It’s pretty easy to figure out what’s what on this line. To add support for the "rel" attribute for "a" tags, you could simply add in the "rel" attribute to the the part of the line dealing with anchor tags (a[name|href|target|title|onclick|rel]). Just modify the code like that and you should be set.

            I would like to use acronym tag in my documents. If I edit the html code, I see acronym aren’t saved.
            I tried to add acronym[title] to the line you mentioned above but still doesn’t work.

            (I use rev 1533)

            Any idea ? smiley
              • 32982
              • 674 Posts
              is posibol two instances of tyni mce?
                Jabiertxof (formerly XYZVISUAL)
                My bussines: http://marker.es
                https://www.youtube.com/user/jabiertxof/videos
                • 16885
                • 255 Posts
                Quote from: xyzvisual at Oct 03, 2006, 03:06 PM

                is posibol two instances of tyni mce?
                Uhm, you want to know if it’s possible to install two instances of TinyMCE? I wouldn’t know what could be the purpose of that, but I suppose that you could alter the code so it’s configured as "Tinymce2" instead of the regular name - MODx wont see the difference then - I think. Can’t give guarantees on that one wink

                Quote from: Perrine at Oct 03, 2006, 04:46 AM

                I would like to use acronym tag in my documents. If I edit the html code, I see acronym aren’t saved.
                I tried to add acronym[title] to the line you mentioned above but still doesn’t work.

                (I use rev 1533)

                Any idea ? smiley
                I’d suggest you to use the list that can be found in their docs system, it contains a complete list of xHTML valid tags - ofcourse you could also just simply copy the acronym part of it and add it to your current list wink
                  • 7455
                  • 2,204 Posts
                  Is it posible that Tiny does NOT rewrite snippet calls?
                  when you enter a snippet call in Tiny (or FCK) it changes & to &amp; that way the snippet is not working anymore.
                  to overcome this problem i put the snippet call in a chunk but thats stupit it schould or work with &amp; or the RTE’s must leave the & as & and not make it &amp;

                  Dimmy
                    follow me on twitter: @dimmy01
                    • 7923
                    • 4,213 Posts
                    I have allready answered to this before, but here’s again. MODx parser can handle the &amp; too.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 30223
                      • 1,010 Posts
                      Is it posible that Tiny does NOT rewrite snippet calls?
                      when you enter a snippet call in Tiny (or FCK) it changes & to &amp; that way the snippet is not working anymore.
                      to overcome this problem i put the snippet call in a chunk but thats stupit it schould or work with &amp; or the RTE’s must leave the & as & and not make it &amp;

                      Let me guess, did you copy and paste the snippet from another page or something like that? Sometimes when you copy and paste snippets in TinyMce (don’t know about fckeditor) it the copied text already has the &amp; and then Tiny changes this to &amp;amp; You don’t necessarily see this in the RTE but your snippets stop working. Check the source to find out if that’s the case. As doze said MODx deals with &amp; but it abviously wouldn’t do so well with &amp;amp;