Hi,
On the practice site,
I would like to change the text
"YUI 2 Rich Text Editor default text (inline iframe)."
in this textbox
"Type = Text Name = ^yui2rte_editor$ Value = <b>This field was autofilled!</b>".
When I press my hotkey there are no changes.
This are some of the code I tried:
let e = document.querySelector('.yui2rte);
var i;
for(i=0; i < length.replacearray; i++){
var replaceword= replacearray[i][Math.floor(Math.random()*items.length)];
res = str.replace(/findword[i]/gi, replaceword);}
and this
findword = ["YUI", "2 Rich", "Text", "Editor"];that.find('.yui2rte').each(function(){var full_text=$(this).text();$.each(f, function(i){full_text=full_text.replace((findword[i],"gi"), (replacearray[i]));});$(this).html(full_text);});
Have selected type: Javascript and the code is under Value. Maybe I'm mistake about the array but I have my array variables placed under "variables".
Hope someone can help
Thank you