Needs review
Project:
Aloha Editor (obsolete)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Oct 2012 at 04:19 UTC
Updated:
18 Oct 2012 at 04:19 UTC
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