javascript - How to apply css for local scope without iframe? -
i developing application drag , drop @ here: (without iframe)
https://cdn.rawgit.com/haonx/landingpage-builder/develop/index.html
now, use iframe feature preview inner document (iframe) cannot detect type (and information) of dragging object outer document. placeholers
not show. , texts allowed drop image dropzone
. (expected not)
i included scripts in both iframe , outer document here: https://cdn.rawgit.com/haonx/landingpage-builder/feature/instant-preview/index.html border droppable zone not show
i tried iframe because css local scope. , display styles correct.
is solution alternative embed document local styles? or way object information when drag on iframe (for show placeholder droppable)? tried ng-include, event drop not working
Comments
Post a Comment