attaching editor to an element other than body: Init, setHtml, getHtml, initFromHtml, navigator/tree#415
attaching editor to an element other than body: Init, setHtml, getHtml, initFromHtml, navigator/tree#415hayden-t wants to merge 8 commits intogivanz:masterfrom
Conversation
|
Ive just now found a problem with setHTML is that it wont execute inline js/script, which is often inserted as part of components, so that errors are thrown in the editor when trying to adjust slides, eg slider. It seems to get the script to execute you have to replace the whole iframe, so it really needs a seperate function or option to accept html code rather than url. setHTML is originally used just for the code editor option, and now it seems doesnt really fit for being used to replace dom content during(just after) iframe load when there is scripts involved, im just looking into alternatives. |
|
ok so i worked out if a blob and bloburl is made of html and sent to the builder instead of iframe url it will execute inline html, so this is better/preferred method than setHtml if you need to supply builder contents this way. so i added new function VvvebJs/libs/builder/builder.js Lines 868 to 876 in a7cb290 |
i forge this bit, its needed otherwise blob url is altered and wont load
and have tree created during iframe load too
No description provided.