Expanding within paragraph
-
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!
- The topic ‘Expanding within paragraph’ is closed to new replies.