Changeset 2103
- Timestamp:
- 2008-06-23 09:46:09 (7 months ago)
- Location:
- FCKeditor/branches/features/div_container
- Files:
-
- 5 modified
-
editor/dialog/fck_div.html (modified) (3 diffs)
-
editor/lang/en.js (modified) (1 diff)
-
editor/_source/internals/fckcommands.js (modified) (1 diff)
-
editor/_source/internals/fck_contextmenu.js (modified) (1 diff)
-
fckconfig.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/div_container/editor/dialog/fck_div.html
r2102 r2103 102 102 function Ok() 103 103 { 104 dialog.Selection.EnsureSelection() ;104 oEditor.FCKUndo.SaveUndoStep() ; 105 105 106 106 if ( !ActiveEl ) … … 130 130 setValue( 'dir', 'selLangDir' ) ; 131 131 132 var styleName = GetE( 'selStyle' ).value ; 133 var range = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ; 134 range.SetStart( ActiveEl, 3 ) ; 135 range.SetEnd( ActiveEl, 4 ) ; 136 if ( styleName ) 137 FCKStyles.GetStyle( styleName ).ApplyToRange( range, false, true ) ; 138 132 139 return true ; 133 140 } … … 147 154 <span fcklang="DlgDivStyle">Style</span><br /> 148 155 <select id="selStyle" style="width: 100%;"> 156 <option value=""> 149 157 </select> 150 158 </td> -
FCKeditor/branches/features/div_container/editor/lang/en.js
r2102 r2103 73 73 IncreaseIndent : "Increase Indent", 74 74 Blockquote : "Blockquote", 75 Div : "Div", 75 CreateDiv : "Create DIV Container", 76 EditDiv : "Edit DIV Container", 76 77 Undo : "Undo", 77 78 Redo : "Redo", -
FCKeditor/branches/features/div_container/editor/_source/internals/fckcommands.js
r2102 r2103 95 95 case 'Outdent' : oCommand = new FCKIndentCommand( 'outdent', FCKConfig.IndentLength * -1 ) ; break ; 96 96 case 'Blockquote' : oCommand = new FCKBlockContainerCommand( 'blockquote' ) ; break ; 97 case 'CreateDiv' : oCommand = new FCKDialogCommand( 'CreateDiv', FCKLang. Div, 'dialog/fck_div.html', 380, 210, null, null, true ) ; break ;98 case 'EditDiv' : oCommand = new FCKDialogCommand( 'EditDiv', FCKLang. Div, 'dialog/fck_div.html', 380, 210, null, null, false ) ; break ;97 case 'CreateDiv' : oCommand = new FCKDialogCommand( 'CreateDiv', FCKLang.CreateDiv, 'dialog/fck_div.html', 380, 210, null, null, true ) ; break ; 98 case 'EditDiv' : oCommand = new FCKDialogCommand( 'EditDiv', FCKLang.EditDiv, 'dialog/fck_div.html', 380, 210, null, null, false ) ; break ; 99 99 100 100 case 'TableInsertRowAfter' : oCommand = new FCKTableCommand('TableInsertRowAfter') ; break ; -
FCKeditor/branches/features/div_container/editor/_source/internals/fck_contextmenu.js
r1602 r2103 293 293 } 294 294 }} ; 295 296 case 'DivContainer': 297 return { 298 AddItems : function( menu, tag, tagName ) 299 { 300 var path = new FCKElementPath( FCKSelection.GetParentElement() ) ; 301 if ( path.BlockLimit && path.BlockLimit.nodeName.IEquals( 'div' ) ) 302 { 303 menu.AddSeparator() ; 304 menu.AddItem( 'EditDiv', FCKLang.EditDiv, 73 ) ; 305 } 306 }} ; 307 295 308 // @Packager.Remove.Start 296 309 default : -
FCKeditor/branches/features/div_container/fckconfig.js
r2102 r2103 143 143 ] ; 144 144 145 FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form' ] ;145 FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; 146 146 FCKConfig.BrowserContextMenuOnCtrl = false ; 147 147