Custom RTE plugin is not working when the dialog is opened on full screen | Community
Skip to main content
Level 3
April 5, 2024
Solved

Custom RTE plugin is not working when the dialog is opened on full screen

  • April 5, 2024
  • 2 replies
  • 949 views

We have a set of customized RTE Plugins used in our project. These RTE plugins when used in a dialog are working fine. However, if the same are tried to be used from a full screen dialog, they're not working, meaning, nothing happens while we click the plugin on a full-screen dialog. This behavior is noticed intermittently.

Any pointers on how to troubleshoot this issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @pixislinger 
Seems there is an error in either OOTB js or your custom plugin JS.

could you please check which file has the error ?

 

If it is related to adobe then open a ticket for Adobe. 

2 replies

arunpatidar
Community Advisor
Community Advisor
April 5, 2024

Hi @pixislinger 
Can you please check the browser console for error? try to add some debug statement to check where is it failing.

 

Here is the custom plugin example which works in full screen as well

https://aemlab.blogspot.com/2019/07/aem-rte-custom-plugins-1.html 

Arun Patidar
Level 3
April 8, 2024

I see the following error on the JS console. This is happening when I click on the "Add" for the multifield text. Once the new textbox is opened, nothing happens when I click on the custom plugin.

 

Uncaught TypeError: Cannot read properties of undefined (reading 'sourceEditMode')
at Object.validate (all.ACSHASH3365dc52da622b23b3c03e4dc96039d9.js:115:40)
at HTMLValidation.<anonymous> (foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:2211:27)
at everyReverse (foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:247:35)
at HTMLValidation.checkValidity (foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:2202:13)
at foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:2376:40
at Array.every (<anonymous>)
at Object.isValid (foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:2369:51)
at enable (foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:11128:74)
at foundation.ACSHASHdf4dc6752c84b5108555451981bffd91.js:11136:17



arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 8, 2024

Hi @pixislinger 
Seems there is an error in either OOTB js or your custom plugin JS.

could you please check which file has the error ?

 

If it is related to adobe then open a ticket for Adobe. 

Arun Patidar
Shashi_Mulugu
Community Advisor
Community Advisor
April 9, 2024

@pixislinger , Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community