JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix code to block loading scripts/etc
[peach-html5-editor.git] / editor.coffee
index a8b6a27..efc218f 100644 (file)
@@ -234,7 +234,8 @@ outer_css = (args) ->
        ret += '.ann_box {'
        ret +=     'z-index: 5;'
        ret +=     'position: absolute;'
-       ret +=     'border: 1px solid rgba(0,0,0,.1);'
+       ret +=     'border: 1px solid rgba(0,0,0,0.1);'
+       ret +=     'outline: 1px solid rgba(255,255,255,0.1);' # in case there's a black background
        ret += '}'
        ret += '.ann_tag {'
        ret +=     'z-index: 10;'
@@ -295,6 +296,7 @@ instantiate_tree = (tree, parent) ->
                                if c.name in ['script', 'object', 'iframe', 'link']
                                        # TODO put placeholders instead
                                        remove.unshift i
+                                       continue
                                # TODO create in correct namespace
                                c.el = parent.ownerDocument.createElement c.name
                                for k, v of c.attrs