- This sample displays a normal HTML form with an FCKeditor with full features enabled.
- This sample uses the FCKeditor Taglib: this method is preferred to the API version
+ This sample displays a normal HTML form with an FCKeditor with full
+ features enabled.
+ This sample uses the FCKeditor Taglib: this method is preferred to
+ the API version
All other sample pages will use this method.
-
+
Index: /FCKeditor.Java/branches/2.4/src/main/webapp/jsp/sample03.jsp
===================================================================
--- /FCKeditor.Java/branches/2.4/src/main/webapp/jsp/sample03.jsp (revision 1481)
+++ /FCKeditor.Java/branches/2.4/src/main/webapp/jsp/sample03.jsp (revision 1482)
@@ -1,80 +1,65 @@
+
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="UTF-8" %>
<%@ taglib uri="http://www.fckeditor.net/tags" prefix="FCK" %>
-
-
-
+--%>
+
+
FCKeditor - JSP Sample
-
-
-
-
+ function ChangeLanguage(languageCode) {
+ if (languageCode != "-1")
+ window.location.href = window.location.pathname + "?code=" + languageCode;
+ }
+
-<%
-String autoDetectLanguageStr;
-String defaultLanguageStr;
-
-String codeStr=request.getParameter("code");
-if(codeStr==null) {
- autoDetectLanguageStr="true";
- defaultLanguageStr="en";
-}
-else {
- autoDetectLanguageStr="false";
- defaultLanguageStr=codeStr;
-}
-
-%>
FCKeditor - JSP - Sample 3
- This sample shows the editor in all it's available languages.
+ This sample shows the editor in all it's available languages.
The Language dropdown is populated with JavaScript API.
-
+