- Posts: 14
 
COMMUNITY FORUM
Extrafield Textarea with Editor DOM errors (2 ids)
- SPOTTERON
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		
			
	
						5 years 6 months ago				#175497
		by SPOTTERON
	
	
		
			
	
			
			 		
													
	
				Extrafield Textarea with Editor DOM errors (2 ids) was created 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
					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
Please Log in or Create an account to join the conversation.
- JoomlaWorks
 - 
				
 - Offline
 - Admin
 
		Less
		More
		
			
	
		- Posts: 6229
 
			
	
						5 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.
					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.
Please Log in or Create an account to join the conversation.
- SPOTTERON
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 14
 
			
	
						5 years 6 months ago				#175509
		by SPOTTERON
	
	
		
			
	
	
			
			 		
													
	
				Replied by SPOTTERON on topic Extrafield Textarea with Editor DOM errors (2 ids)			
			
				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!
					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!
Please Log in or Create an account to join the conversation.