From 23aec4144f9d4352ba6d10367288f51d57ba990f Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Sat, 23 Jun 2012 13:44:49 -0700 Subject: Text Tool Fix - Can Not Switch Document when Text Tool Initialized Signed-off-by: Armen Kesablyan --- .../rich-text-editor.reel/rich-text-sanitizer.js | 132 --------------------- 1 file changed, 132 deletions(-) delete mode 100644 node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js (limited to 'node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js') diff --git a/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js b/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js deleted file mode 100644 index 3282d3e6..00000000 --- a/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js +++ /dev/null @@ -1,132 +0,0 @@ -/* - This file contains proprietary software owned by Motorola Mobility, Inc.
- No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
- (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ -/** - @module "montage/ui/rich-text-sanitizer.js" - @requires montage/core/core -*/ -var Montage = require("montage").Montage; - -/** - @class module:"montage/ui/rich-text-sanitizer.js".Sanitizer - @extends module:montage/core/core.Montage -*/ -exports.Sanitizer = Montage.create(Montage,/** @lends module:"montage/ui/rich-text-sanitizer.js".Sanitizer# */ { - - willSetValue: { - value: function(value, identifier) { - return this._scopeCSS(value, identifier); - } - }, - - didGetValue: { - value: function(value, identifier) { - return this._unscopeCSS(value, identifier); - } - }, - - willInsertHTMLData: { - value: function(data, identifier) { - return this._scopeCSS(this._removeScript(data), identifier); - } - }, - - _scopeCSS: { - enumerable: true, - value: function(htmlFragment, identifier) { - var identifierSelector = ".editor-" + identifier+ " "; - - if (typeof htmlFragment == "string") { - // Extract the style tag and its content - htmlFragment = htmlFragment.replace(/(