Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
aloha/drupal/lib/drupalcontenthandler.js
this bug appears when trying to paste.
when allowed tags list is empty, sanitize isn't loaded and a white list of allowed tags is provided by setting.basic
refactoring of code has made access to setting.basic through this.setting.basic out of scope. solution is to add to current scope.
--- a/aloha/drupal/lib/drupalcontenthandler.js
+++ b/aloha/drupal/lib/drupalcontenthandler.js
@@ -39,6 +39,9 @@ define([
};
var DrupalContentHandler = ContentHandlerManager.createHandler({
+ // bring setting into scope
+ setting: setting,
+
/**
* Handle the content from eg. paste action and sanitize the html
* @param content