X
X
xuxodaveb2015-10-04 12:50:26
PHP
xuxodaveb, 2015-10-04 12:50:26

Collapsible/expandable block in TinyMCE or similar?

Hello dear!
Tell me, please, is there a possibility (or a plugin) in TinyMCE to directly create blocks of text + images through the editor that collapse / expand when the title is clicked?
Here, for example, how they usually do it in bootstrap and in general through javascript - this is generally called Collapse in English, right?
getbootstrap.com/javascript/#collapse
In general, such a collapse is needed, but only through the vizivig editor, who has come across it, please tell us. I would like TinyMCE, but any other vizivig editor will do. Website with self-written admin panel.
Thanks in advance to everyone for the replies!
Sincerely, your colleague.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-10-04
@xuxodaveb

Neither TinyMCE nor any other out-of-the-box editor I know of has the ability to implement what you want. You can implement it more precisely, but with your own efforts - add an extension / add-on that will add a certain html snippet, for example, as in the example from the link you provided. Here's an example for you . By clicking on the button ( I left it the only one there ), the html code is added to the editor. On the page, you will only need to include the JS and CSS of the Сollapse plugin.
PS I'm practically not familiar with TinyMCE (unlike you ;))) ), so it's quite possible that there are more convenient API methods for implementing the plan.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question