Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed name of target to something boring
  • Loading branch information
Jason Smith committed Feb 2, 2018
commit b120ccf00f01581750a726e610a788484c0bc254
4 changes: 2 additions & 2 deletions src/PatternkitDrupalTwigLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function getEditor($subtype = NULL,
: $config;
// @todo Move to own JS file & Drupal Settings config var.
$markup = <<<HTML
<div id="magic-pixie-dust"></div>
<div id="editor-shadow-injection-target"></div>
<script type="text/javascript">
var target = document.getElementById("magic-pixie-dust");
var target = document.getElementById("editor-shadow-injection-target");
var shadow = target.attachShadow({mode: 'open'});

shadow.innerHTML = '<link rel="stylesheet" id="theme_stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"><link rel="stylesheet" id="icon_stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.css"><div id="editor_holder"></div>';
Expand Down