Accordion: unmodifiable and sometimes blank

akud's picture

Hello,

I would love using this tool but as time goes by I think I've found a few problems.

1. If I'm editing the text I've inserted, sometimes I see I can't.
This happens on my Mac (10.12.1) with Firefox (50.0.2) and Chrome (54.0.28xxxxxx): I go into "Edit", make my modifications and save. But the node doesn't take the edit.
No problem with Safari (10.0.1).

2. Many times, when I create a new content, as I copy and paste some text, nothing comes out in the page (randomly I get "new text" instead of the text I've inserted). I don't understand how this happens. It's generally random how I "succeed" (but I really do 2-3 times out of 10).
This happen with all the above browsers (Safari included).
I've tried pasting texts from MS Word (.doc and .docx), then with TextEdit, both RTF and TXT, and also with Libre Office (.odt).
With plain text formats (and with .odt) it seems much easier to succeed, but as I said, I can't see a "schema". Also, in these last cases, I get no formatting (something like all lines are divided by <br> instead of <p>).

I'm at disposal for further elements, if asked.

Thanks,

Gerardo

papi Jo's picture

Hi Gerardo!

I've noticed this "bug" too. Here is my solution. After you've entered text or modified text in the Text box, if you want your changes to be saved, you must leave that text box : either with the tab key or click in the Title box, then you can click the Update button.

Try it!

akud's picture

I tried and it works!

I've inserted and then modified a new text. With Chrome and then Firefox, and with both clicking on title field and moving with tab.

Great!

Thanks,

g.

 

tim's picture

Hi, thanks for taking the time to report the bug. We've created a fix and it should be avaliable in the next release. 

akud's picture

thank you so much, you're great!

tomaj's picture

I can confirm this bug, and I created a task in Jira to fix it.

- Tom

This is what we are working on, we can use H5P on TAB1 but nothing shows on TAB2 and TAB3.    Is this also part of the bug?

[accordions collapsible=false active=true style=accordion-container]
[accordion title="Accordion title 1" style=""]
If I put h5p content here, it works:
[h5p id="1"]
[tabs collapsible="true" selected="0" event="click" position="top" ]

[tab title="Tab 1"]
If I put h5p content within the first tab, it still loads properly:
[h5p id="1"]
[/tab]

[tab title="Tab 2"]
If I put h5p content in later tabs, it does not load:

[h5p id="1"]
[/tab]

[tab title="Tab 3"]
If I put h5p content in later tabs, it does not load:

[h5p id="1"]
[/tab]
[/tabs][/accordion]
[accordions collapsible=false active=true style=accordion-container]
[accordion title="Accordion title 2" style=""]
Accordion 2 content
[/accordion][/accordions]

tim's picture

Hi, there is a problem with tabs in wordpress (not the keyboard kind). You can find out more about it here:

https://h5p.org/comment/8653

papi Jo's picture

Hi spedigi,

Your problem is not related to the current discussion. It concerns the use of the H5P Accordion activity together with the WordPress Tabs Shortcodes plugin.

See this discussion: https://h5p.org/comment/8653