Keyword

Extrafield Textarea with Editor DOM errors (2 ids)

  • SPOTTERON
  • SPOTTERON's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #175497 by SPOTTERON
Hi!
when we use the extra field type text area on one site, in the backend > k2 > item the changes in a text area are not saved anymore. It seems the editor (in our case JCE) is loaded twice, the debug console pints out 81 warnings (one for every editor button), e.g.:

DOM] Found 2 elements with non-unique id #K2ExtraField_27_abbr: (More info: goo.gl/9p2vKq)

<button type="button" id="K2ExtraField_27_abbr" class="mceButton mce_abbr mceButtonDisabled" title="Abbreviation" aria-label="Abbreviation" tabindex="-1" aria-disabled="true"><span role="presentation" class="mceIcon mce_abbr"></span></button>

<button type="button" id="K2ExtraField_27_abbr" class="mceButton mce_abbr mceButtonDisabled" title="Abbreviation" aria-label="Abbreviation" tabindex="-1" aria-disabled="true"><span role="presentation" class="mceIcon mce_abbr"></span></button>

Is there any solution to this?`
We mainly want just admins to be able to use line breaks.

thanks and best regards!
Jonathan

Old member

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #175503 by JoomlaWorks
Replied by JoomlaWorks on topic Extrafield Textarea with Editor DOM errors (2 ids)
This indicates that you have 2 extra fields with the same "alias". Change that and the issue should go away.

Additionally, if you just want to split your content to introtext/fulltext, there's an option you can enable in the K2 Settings (Admin tab). K2 just ships with the unified editor so it's easier for those coming from Joomla articles to K2.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • SPOTTERON
  • SPOTTERON's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #175509 by SPOTTERON
Dear Fotis,
thanks for your quick reply, I have looked through all the extra fields in all the groups - but there is no duplicated alias present.
Also changing the text field extra field alias doesn't resolve the problem.

The weird behaviour is:
when I use the switch editor ff button above the editor area, a second copy of the textfield extrafield appears without an editor and when switching the editor on again the copy stays but displays the editor too.
Screenshot attached.

best regards!

Old member
Attachments:

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum