Changeset 1972
- Timestamp:
- 2008-05-09 11:29:44 (2 months ago)
- Location:
- FCKeditor.Java/branches/2.4/src/site/apt
- Files:
-
- 2 modified
-
connector.apt (modified) (4 diffs)
-
demo.apt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/branches/2.4/src/site/apt/connector.apt
r1938 r1972 1 1 ~~ FCKeditor - The text editor for Internet - http://www.fckeditor.net 2 2 ~~ Copyright (C) 2003-2008 Frederico Caldeira Knabben 3 ~~ 3 ~~ 4 4 ~~ == BEGIN LICENSE == 5 ~~ 5 ~~ 6 6 ~~ Licensed under the terms of any of the following licenses at your 7 7 ~~ choice: 8 ~~ 8 ~~ 9 9 ~~ - GNU General Public License Version 2 or later (the "GPL") 10 10 ~~ http://www.gnu.org/licenses/gpl.html 11 ~~ 11 ~~ 12 12 ~~ - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 13 13 ~~ http://www.gnu.org/licenses/lgpl.html 14 ~~ 14 ~~ 15 15 ~~ - Mozilla Public License Version 1.1 or later (the "MPL") 16 16 ~~ http://www.mozilla.org/MPL/MPL-1.1.html 17 ~~ 17 ~~ 18 18 ~~ == END LICENSE == 19 19 ~~ @version $Id$ … … 27 27 interaction, you can skip this section. 28 28 29 [Hint:] The Connector by default is not present and disabled for security 29 [Hint:] The Connector by default is not present and disabled for security 30 30 reasons! 31 31 … … 56 56 57 57 Assuming you installed the editor in the <<</fckeditor>>> folder in your webapp.\ 58 The Connector is now declared but <still> disabled. The response is going to 58 The Connector is now declared but <still> disabled. The response is going to 59 59 be an error message. 60 60 … … 71 71 Extending the Connector 72 72 73 [Hint:] Skip this section if you are not interested in extending the 73 [Hint:] Skip this section if you are not interested in extending the 74 74 Connector. 75 75 76 76 The basic idea of extending the Connector is to provide some interfaces for special user depended interactions, 77 77 which can be implemented by the developer of a webapp. All methods get the <<<HttpServletRequest>>>-object, 78 so the developer could identify the user with a session attribute for example and return a user 79 specific value. We intentionally make no suggestions how to do this, so you have the free of choice to 78 so the developer could identify the user with a session attribute for example and return a user 79 specific value. We intentionally make no suggestions how to do this, so you have the free of choice to 80 80 implement whatever and however you like. 81 82 The fully-qualified class name of the implemented classes can now be set as described in 81 82 The fully-qualified class name of the implemented classes can now be set as described in 83 83 {{{properties.html}Configuration settings}}. 84 84 85 85 At the moment, the integration pack provides two interfaces to extend the connector: 86 86 87 87 [[1]] {{{java-core/apidocs/net/fckeditor/requestcycle/UserPathBuilder.html}<<<net.fckeditor.requestcycle.UserPathBuilder>>>}} 88 89 In this interface there is only one method <<<getUserFilesPath(final HttpServletRequest request)>>>, 90 return value is a string. There you can implement a user dependent construction of the 'BaseDir' path, 91 the path for all resource files. 92 88 89 In this interface there is only one method <<<getUserFilesPath(final HttpServletRequest request)>>>, 90 return value is a string. There you can implement a user dependent construction of the 'BaseDir' path, 91 the path for all resource files. 92 93 93 [[2]] {{{java-core/apidocs/net/fckeditor/requestcycle/UserAction.html}<<<net.fckeditor.requestcycle.UserAction>>>}} 94 94 95 95 There are two methods to authorize users to do file based actions: 96 96 97 97 * <<<#isEnabledForFileUpload(HttpServletRequest)>>> Enables/disables the user for uploading files. 98 98 99 99 * <<<#isEnabledForFileBrowsing(HttpServletRequest)>>> Enables/disables the user for browsing files. 100 100 101 101 [] 102 102 103 103 For those who wants to enable all users for browsing and uploading files, there is an implementation 104 104 of <<<UserAction>>> you can use: {{{java-core/apidocs/net/fckeditor/requestcycle/impl/UserActionImpl.html}UserActionImpl}} -
FCKeditor.Java/branches/2.4/src/site/apt/demo.apt
r1970 r1972 25 25 26 26 The demo is intended for novices, beginners and for everyone who wants to see 27 the FCKeditor in action right out of the box. It's also a good reference for28 you to see how all integral parts work together.27 the FCKeditor (version 2.6) in action right out of the box. It's also a good 28 reference for you to see how all integral parts work together. 29 29 30 30 It takes two simple steps to see the demo in action: