PageSourceSearch

http://medytoxacademy.com/weven_asset/js/bm2/com/toolbtn/ToolBtnTextLineHeight.js

js medytoxacademy.com collected 2026-10-07 08:31:58 UTC 1,194 bytes, 47 lines download raw bytes

1/**
2 * Created by kjhmac on 2017-01-15.
3 */
4
5
6var ToolBtnTextLineHeight = function(){
7
8
9    this.editor;
10
11    var _this = this;
12
13
14    var op = new ToolOpTextLineHeight();
15    this.setOption( { "text_lineHeight" : op } );
16
17    this.onOptionChange = function( optionType, value ){
18        var range = bm.selectionManager.getRange();
19        var parentElement;
20        var cssMap;
21
22        if( optionType == "ToolOpTextLineHeight" ){
23            var selectedNode = bm.selectionManager.getNode();
24            if( !selectedNode || ( _this.editor && ( !_this.editor.lastRange || $.contains(_this.editor.editorEl, _this.editor.lastRange.endContainer ) == false ) ) ){
25                alert( "적용할 대상을 선택되지 않았습니다.");
26                return;
27            }
28
29            cssMap = {"line-height" : value };
30
31            var parentElement = bm.dom.findParentUntilBlock( selectedNode );
32            $(parentElement).css( cssMap );
33
34            $(_this.btn).find('.label').text( value );
35
36            events(_this).dispatch( ToolBtn.CLICK, { btn:this, data:cssMap } );
37        }
38    }
39
40    this.onClick = function(e){
41
42
43    }
44}
45
46
47bm.extend( ToolBtnBase , ToolBtnTextLineHeight );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.