thebe icon indicating copy to clipboard operation
thebe copied to clipboard

an existing code is not shown in the accordion tab

Open hd016 opened this issue 6 years ago • 0 comments

It may be a very special problem, but still very interesting. I couldn't solve it with standard HTML and JS functions.

I have my saved notebooks in a bootstrap accordion. All notebooks are preloaded. The code is visible in the first notebook (tab). But not in the other tabs. The code is only visible when you click on the text fields.

According to my research, the class CodeMirror cm-s-default , gets on a click the CodeMirror-focused class.

Now my question is how can you load an existing code into the notebook (which I am already doing) but this is also displayed?

I think a couple of screenshots will explain this in more detail.

All tabs has the same code. The first tab is loaded automaticly on page visiting. The second tab is opened by the user on click.

first-tab second-tab

hd016 avatar May 09 '20 01:05 hd016