Changeset 317
- Timestamp:
- 09/14/05 12:06:14 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/ListType/list-type.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ListType/list-type.js
r315 r317 52 52 var elts_ul = ['disc', 'circle', 'square', 'none']; 53 53 var elts_ol = ['decimal', 'lower-alpha', 'upper-alpha', 'lower-roman', 'upper-roman', 'none']; 54 var divglobal = document.createElement( 'div' ); 55 divglobal.style.height = '90px'; 54 56 var div = document.createElement( 'div' ); 55 57 div.id = 'LTdivUL'; 56 58 div.style.display = 'none'; 57 for ( var i=0; i<elts_ul.length; i++ ) { 59 for ( var i=0; i<elts_ul.length; i++ ) 60 { 58 61 div.appendChild( this.createImage( elts_ul[i] ) ); 59 62 } 60 editor._ListType.appendChild( div );63 divglobal.appendChild( div ); 61 64 var div = document.createElement( 'div' ); 62 65 div.id = 'LTdivOL'; 63 66 div.style.display = 'none'; 64 for ( var i=0; i<elts_ol.length; i++ ) { 67 for ( var i=0; i<elts_ol.length; i++ ) 68 { 65 69 div.appendChild( this.createImage( elts_ol[i] ) ); 66 70 } 67 editor._ListType.appendChild( div ); 71 divglobal.appendChild( div ); 72 73 editor._ListType.appendChild( divglobal ); 68 74 69 75 editor.hidePanel( editor._ListType ); … … 79 85 { 80 86 name : "ListType", 81 version : "2. 0",87 version : "2.1", 82 88 developer : "Laurent Vilday", 83 89 developer_url : "http://www.mokhet.com/", … … 125 131 { 126 132 if ( this.editor.config.ListType.mode == 'toolbar' ) return ; 127 var parent = editor.getParentElement();133 var parent = this.editor.getParentElement(); 128 134 while ( parent && !/^[o|u]l$/i.test( parent.tagName ) ) 129 135 parent = parent.parentNode; 130 if (parent )136 if (parent && /^[o|u]l$/i.test( parent.tagName ) ) 131 137 { 132 138 this.showPanel( parent );
