• Hi
    Thank you very much for your plugin. I use it a lot on my blog, indeed as a new way of writing lengthy articles with subarticles hidden within.

    By default, Collaps-o-matic expands target content into new paragraphs, and every trigger text automatically creates a <p> at the end too. (I’m not sure if this is Collaps-o-matic’s working, or something WordPress does)

    However, I’d like to use a trigger text inside a paragraph, within sentences that go on after the trigger text.

    I also would like to choose if the target content is shown in a new paragraph, or expands inside the sentence, without breaking the paragraph in two.

    After a few searches (I’m not that quick) I found a partial solution for the first question: the manual Roll Your Own Method.

    But I still have three questions:

    1. With this method, when the target content is not expanded, the paragraph remains intanct. However, when you click the trigger text and the target content expands, it does so on a new line, while the remains of the normal sentence still follow directly after. It’s like a </br> is placed in front of the target content, but not after. I would like to see it the same before and after the target content. Is there a way to do that?

    2. This all has to be handcoded. It has to be done in TinyMCE text, not in the visual editor. Switching between the two seems a hazard, and you can’t see where the code is in visual mode.

    3. It would be so very handy if there would be a shortcode for this, to remove that extra <p> and be done with it ?? Is there any chance this could be incorporated in a next version?

    Thanks a lot for any answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author twinpictures

    (@twinpictures)

    To answer your questions direct:

    1. With this method, when the target content is not expanded, the paragraph remains intact. However, when you click the trigger text and the target content expands, it does so on a new line, while the remains of the normal sentence still follow directly after…

    Please check out the following posts:
    https://spacedonkey.de/2828/collapse-o-matic-inline-trigger-with-block-target/
    https://spacedonkey.de/2142/collapse-o-matic-collapse-pro-matic-inline-test/

    2. This all has to be hand coded. It has to be done in TinyMCE text, not in the visual editor. Switching between the two seems a hazard, and you can’t see where the code is in visual mode.

    This is why we built Collapse-Commander

    3. It would be so very handy if there would be a shortcode for this, to remove that extra <p> and be done with it

    Please uncheck the ‘filter content’ in the plugin settings.

    Give those items a try, and let us know what issues remain and we’ll be happy to provide further assistance.

    Thread Starter Bas T

    (@bas-t)

    Thanks a lot for your fast answer!

    1. I’m going to try out the code in the posts you mentioned, especially the first one of the ‘inline trigger with block target’. Thanks, that seems to solve number one!

    2. As I understand the Collapse-Commander helps with a WYSIWYG editor, so you don’t have to learn the shortcodes. I have no problem with shortcodes, except that there doens’t seem to be one for the ‘inline trigger’ or the ‘roll your own method’. Could it be possible to add a shortcode in a next version of Collapse-o-matic so we can use it in the same way as [expand title=’…’], so we can see where it’s placed in the visual editor of TinyMCE, and we don’t need to add span classes anymore?

    3. I already have ‘filter content’ unchecked, however, if I use the normal [expand title=…’] shortcode an extra <p> appears at the frontend.

    Thank you very much again for your work and answers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Expanding within paragraph’ is closed to new replies.