Line | |
---|
1 | /*
|
---|
2 | * FCKeditor - The text editor for internet
|
---|
3 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
---|
4 | *
|
---|
5 | * Licensed under the terms of the GNU Lesser General Public License:
|
---|
6 | * http://www.opensource.org/licenses/lgpl-license.php
|
---|
7 | *
|
---|
8 | * For further information visit:
|
---|
9 | * http://www.fckeditor.net/
|
---|
10 | *
|
---|
11 | * "Support Open Source software. What about a donation today?"
|
---|
12 | *
|
---|
13 | * File Name: fcktoolbarbreak_gecko.js
|
---|
14 | * FCKToolbarBreak Class: breaks the toolbars.
|
---|
15 | * It makes it possible to force the toolbar to break to a new line.
|
---|
16 | * This is the Gecko specific implementation.
|
---|
17 | *
|
---|
18 | * File Authors:
|
---|
19 | * Frederico Caldeira Knabben (fredck@fckeditor.net)
|
---|
20 | */
|
---|
21 |
|
---|
22 | var FCKToolbarBreak = function()
|
---|
23 | {}
|
---|
24 |
|
---|
25 | FCKToolbarBreak.prototype.Create = function( targetElement )
|
---|
26 | {
|
---|
27 | var oBreakDiv = targetElement.ownerDocument.createElement( 'div' ) ;
|
---|
28 |
|
---|
29 | oBreakDiv.style.clear = oBreakDiv.style.cssFloat = FCKLang.Dir == 'rtl' ? 'right' : 'left' ;
|
---|
30 |
|
---|
31 | targetElement.appendChild( oBreakDiv ) ;
|
---|
32 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.