| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /**
- * @fileoverview
- * Tool '취소선' Source,
- * Class Trex.Tool.Strike 와 configuration을 포함
- *
- */
- TrexConfig.addTool(
- "strike",
- {
- wysiwygonly: _TRUE,
- sync: _TRUE,
- status: _TRUE,
- hotKey: {
- // ctrl + d
- ctrlKey: _TRUE,
- keyCode: 68
- }
- }
- );
- Trex.Tool.Strike = Trex.Class.create({
- $const: {
- __Identity: 'strike'
- },
- $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 "strikethrough";
- },
- isStyleApplied: function(node) {
- var matchTagName = 'strike';
- return this.queryNodeStyle(node, this.getCssPropertyName(), this.getQueryCommandName(), matchTagName);
- }
- });
|