aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/text-properties.reel/text-properties.js
blob: 313693b10cb31eeda0541a2c9ae004b47f07750a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */

var Montage = require("montage/core/core").Montage;
var Component = require("montage/ui/component").Component;
var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;

exports.TextProperties = Montage.create(ToolProperties, {
    className: {value: null},
    tagType: {value: null},
    fontSelection: {value: null},
    fontSettings: {value: null},
    fontSize: {value: null},
    fontColor: {value: null},
    btnBold: {value: null},
    btnItalic: {value: null},
    btnUnderline: {value: null},
    btnStrikethrough: {value: null},
    txtLink: {value: null},
    linkTarget: {value: null},
    alignLeft: {value: null},
    alignCenter: {value: null},
    alignRight: {value: null},
    alignJustify: {value: null},
    indentRight: {value: null},
    indentLeft: {value: null},
    numberedList: {value: null},
    bulletedList: {value: null},

    prepareForDraw: {
        value: function() {
            this.linkTarget.items = ["Target","_blank","_self","_parent", "_top"];
            this.fontSettings.label = "Settings";
            this.btnBold.label = "Bold";
            this.btnItalic.label = "Italic";
            this.btnUnderline.label = "Underline";
            this.btnStrikethrough.label = "Strikethrough";
            this.alignLeft.label = "Left";
            this.alignCenter.label = "Center";
            this.alignRight.label = "Right";
            this.alignJustify.label = "Justify";
        }
    },
    
    _subPrepare: {
        value: function() {
            //this.divElement.addEventListener("click", this, false);
        }
    },

    handleClick: {
        value: function(event) {
           // this.selectedElement = event._event.target.id;
        }
    }
});