diff options
author | Eric Guzman | 2012-04-02 15:36:08 -0700 |
---|---|---|
committer | Eric Guzman | 2012-04-02 15:36:08 -0700 |
commit | 0241bf331b7e06e206a54be441edf2f4c7261f63 (patch) | |
tree | b7e2f9cad73eed4fc616cf1841cd0be02bd955d4 /js/tools/TextTool.js | |
parent | dde5b5054f93db493e5d4d502e677f5781334b08 (diff) | |
parent | c6de22bf42be90b403491b5f87b1818d9020310c (diff) | |
download | ninja-0241bf331b7e06e206a54be441edf2f4c7261f63.tar.gz |
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/tools/TextTool.js')
-rwxr-xr-x | js/tools/TextTool.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/TextTool.js b/js/tools/TextTool.js index 4c464173..d27a32bb 100755 --- a/js/tools/TextTool.js +++ b/js/tools/TextTool.js | |||
@@ -6,7 +6,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
6 | 6 | ||
7 | var Montage = require("montage/core/core").Montage, | 7 | var Montage = require("montage/core/core").Montage, |
8 | DrawingTool = require("js/tools/drawing-tool").DrawingTool; | 8 | DrawingTool = require("js/tools/drawing-tool").DrawingTool; |
9 | RichTextEditor = require("node_modules/labs/rich-text-editor.reel").RichTextEditor; | 9 | RichTextEditor = require("node_modules/labs/rich-text-editor.reel").RichTextEditor, |
10 | ElementsMediator = require("js/mediators/element-mediator").ElementMediator; | ||
10 | 11 | ||
11 | exports.TextTool = Montage.create(DrawingTool, { | 12 | exports.TextTool = Montage.create(DrawingTool, { |
12 | 13 | ||
@@ -21,7 +22,7 @@ exports.TextTool = Montage.create(DrawingTool, { | |||
21 | this.selectedElement.innerHTML = this.application.ninja.stage.textTool.value; | 22 | this.selectedElement.innerHTML = this.application.ninja.stage.textTool.value; |
22 | this.application.ninja.stage.textTool.value = ""; | 23 | this.application.ninja.stage.textTool.value = ""; |
23 | this.application.ninja.stage.textTool.element.style.display = "none"; | 24 | this.application.ninja.stage.textTool.element.style.display = "none"; |
24 | this.applyElementStyles(this.application.ninja.stage.textTool.element.firstChild, this.selectedElement, ["color"]); | 25 | ElementsMediator.setProperty(this.application.ninja.selectedElements, "color", [window.getComputedStyle(this.application.ninja.stage.textTool.element.firstChild)["color"]], "Change", "textTool"); |
25 | } | 26 | } |
26 | //Set Selected Element | 27 | //Set Selected Element |
27 | this._selectedElement = val; | 28 | this._selectedElement = val; |