BUG:
Question
I want to apply script to rte element which is select html element, on selecting the value for from one select field the dynamic values should get appended to other select field but the script is not working in rte

rte.add('custom-parentkey', {
icon: htmlForParent,
// Bind the 'result' on 'change' listener
event: 'change',
result: (rte, action) => {
// Here I want to get the field value and get the result dynamically and append it to other select field but the script
is not working
alert(JSON.stringfy(rte))
//rte.insertHTML("<first>HELLLLLOOOO</first>")
},
update: (rte, action) => { action.btn.firstChild.value = "";}
})
rte.add('custom-childkey', {
icon: htmlForChild,
// Bind the 'result' on 'change' listener
event: 'change',
result: (rte, action) => {},
// Reset the select on change
update: (rte, action) => { }
})
I even tried initialising {allowScript:1} in the editor.init() still didn't work
Answers (1)
Maybe because it's stringify and not stringfy...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1706
[Question]: How to get href from rte?
I have this rte toolbar where you can type and click 'save' and it's going to create a link for the selected text. but the problem is that...
Issue #3559
BUG: page.getMainComponent().view gives undefined when page is selected
Hello @artf, I want to get the HTML Element of selected page. But it returns undefined when using following code:
Issue #2003
[Question] How to select a specific element nested inside a template
My test case: https://codepen.io/jogai/pen/QRjKyN?editors=1111 I want to select the middle column so I thought I can use selectorManager.ge...
Issue #1409
Component Drag Event
I want to know how can I get that component from which element is dragged and drop to the other component. I need to add a class if compone...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.