| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * @fileoverview
- * Tool 'Underline' Source,
- * Class Trex.Tool.Underline configuration 을 포함 하고있다.
- *
- */
- TrexConfig.addTool(
- "underline",
- {
- wysiwygonly: _TRUE,
- sync: _TRUE,
- status: _TRUE,
- hotKey: {
- // ctrl + u
- ctrlKey: _TRUE,
- keyCode: 85
- }
- }
- );
- Trex.Tool.Underline = Trex.Class.create({
- $const: {
- __Identity: 'underline'
- },
- $extend: Trex.Tool,
- $mixins: [
- Trex.I.FontTool,
- Trex.I.ButtonFontTool,
- Trex.I.WrappingDummyFontTool,
- ($tx.gecko ? Trex.I.Tool.QueryStyle.Gecko : Trex.I.Tool.QueryStyle.Standard)
- ],
- getRelatedCssPropertyNames: function() {
- return [this.getCssPropertyName()];
- },
- getCssPropertyName: function() {
- return "textDecoration";
- },
- getQueryCommandName: function() {
- return "underline";
- },
- isStyleApplied: function(node) {
- var matchTagName = 'u';
- return this.queryNodeStyle(node, this.getCssPropertyName(), this.getQueryCommandName(), matchTagName);
- }
- });
|