We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24495
    • 407 Posts
    I think there was a thread about incorrect nested lists in TinyMCE anywhere. But can’t find them.

    The problem: Nested ul’s in TinyMCE are rendered this way:
    <ul>
    <li>bla 1.1</li>
       <ul>
       <li>bla 2.1</li>
       <li>bla 2.2</li>
       </ul>
    <li>bla 1.2</li>
    ...
    


    And it should be rendered this way:
    <ul>
    <li>bla 1.1
       <ul>
       <li>bla 2.1</li>
       <li>bla 2.2</li>
       </ul></li>
    <li>bla 1.2</li>
    ...
    


    Is there a solution I don’t know this time (and without hacking the HTML)?
      • 24495
      • 407 Posts
      Nobody knows how to nest lists properly? Can TinyMCE handle this?
        • 4018
        • 1,131 Posts
        Just tested this with version 2.1.0. Works great for me! So this is likely something that MoxieCode fixed recently. I’m putting the final touches on the 2.1.0 release of the plugin so...stay tuned! BTW...what version of TinyMCE are you using?
          Jeff Whitfield

          "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
          • 24495
          • 407 Posts
          What an answer laugh Can’t wait for next version (ok, I can/must wink ) Must be like birthday, xmas and holidays at same time ...
          Currently I use 2.0.8 included with modx 0.9.5.

          Btw: I have problems (and my client too) with the in-build image editor. If I edit an image (e.g. image.jpg) and save it with the same name as the original file it creates a second file image_1.jpg and two additional files I can see only in file manager/images with a very long and cryptical name and extension jepg. Why this and will it be better with the new version?
            • 4018
            • 1,131 Posts
            Quote from: rasc at Feb 24, 2007, 02:15 PM

            Btw: I have problems (and my client too) with the in-build image editor. If I edit an image (e.g. image.jpg) and save it with the same name as the original file it creates a second file image_1.jpg and two additional files I can see only in file manager/images with a very long and cryptical name and extension jepg. Why this and will it be better with the new version?

            Yeah, the image editor is somewhat quirky and outdated. We’re planning on ditching it for a better solution. Once we start working on an updated resource browser, we’ll be looking to a better image editor...err...at least something that covers the basics (resizing, cropping, etc.)
              Jeff Whitfield

              "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
              • 24495
              • 407 Posts
              Nice to here that. Hope it will be available soon ... I think it is an important feature for clients we build web sites for. They are low-skilled in image editing and look for a simple solution to resize/crop images includes in modx. And that pushes the acceptance of modx based systems in business web sites with more than one freaky author.

              modx is a system for simple editing web sites and that should be too for editing images. Nevertheless the improvements in TinyMCE are great.
                • 23018
                • 353 Posts
                This problem showed up five years ago in Evo 0.9.5 and according to this thread the problem was fixed though i doubt that (see below).

                Today I noticed exactly the same behaviour with tinymce tinymce-4.3.2-pl. in Revo MODX Revolution 2.2.1-pl (traditional).

                According to this post: http://stackoverflow.com/questions/6917944/tinymce-makes-invalid-nested-lists this problem still existed in mid 2011

                I have tweaked my tinymce a bit, so I'm not sure if this problem is indead an inherent problem of the current package or tinymce itself.

                Can anybody confirm this problem?

                If this is again the case I will file a bug

                Regards,

                pepebe
                  Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                  • 23018
                  • 353 Posts
                  Well, Google is your friend...

                  Add the list plugin to tiny.custom_plugins and rebuild your broken lists.

                  This should fix the problem.

                  What I don't understand is why this is not a tinymce core feature.

                  Well, problem solved.

                  Regards,

                  pepebe
                    Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe