Index: /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorInsertTag.java
===================================================================
--- /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorInsertTag.java	(revision 6808)
+++ /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorInsertTag.java	(revision 6809)
@@ -106,22 +106,8 @@
 
 	/**
-	 * @return the editor
-	 */
-	public final String getEditor() {
-		return editor;
-	}
-
-	/**
 	 * @param editor the editor to set
 	 */
 	public final void setEditor(final String editor) {
 		this.editor = editor;
-	}
-
-	/**
-	 * @return the String value
-	 */
-	public final String getValue() {
-		return value;
 	}
 
@@ -134,15 +120,13 @@
 	
 	/**
-	 * @return the textarea attributes
-	 */
-	public final Map<String, String> getTextareaAttributes() {
-		return textareaAttributes;
-	}
-
-	/**
 	 * @param textareaAttr the textarea attributes to set
 	 */
 	public final void setTextareaAttributes(final Map<String, String> textareaAttr) {
 		this.textareaAttributes = textareaAttr;
+	}
+
+	@Override
+	protected String getCKEditorName() {
+		return this.editor;
 	}	
 
Index: /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceAllTag.java
===================================================================
--- /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceAllTag.java	(revision 6808)
+++ /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceAllTag.java	(revision 6809)
@@ -50,10 +50,4 @@
 	}
 
-	/**
-	 * @return the class name
-	 */
-	public final String getClassName() {
-		return className;
-	}
 
 	/**
@@ -64,4 +58,9 @@
 	}
 
+	@Override
+	protected String getCKEditorName() {
+		return "";
+	}
+
 	
 }
Index: /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceTag.java
===================================================================
--- /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceTag.java	(revision 6808)
+++ /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorReplaceTag.java	(revision 6809)
@@ -37,11 +37,4 @@
 
 	/**
-	 * @return the name of the element to replace
-	 */
-	public final String getReplace() {
-		return replace;
-	}
-
-	/**
 	 * @param replace the name of the replaced element to set
 	 */
@@ -50,3 +43,8 @@
 	}
 
+	@Override
+	protected String getCKEditorName() {
+		return this.replace;
+	}
+
 }
Index: /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorTag.java
===================================================================
--- /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorTag.java	(revision 6808)
+++ /CKEditor.Java/ckeditor-java-core/trunk/src/main/java/com/ckeditor/CKEditorTag.java	(revision 6809)
@@ -6,4 +6,5 @@
 
 import java.io.IOException;
+import java.util.Map;
 
 import javax.servlet.http.HttpServletResponse;
@@ -44,7 +45,8 @@
 	public int doEndTag() throws JspException {
 		JspWriter out = pageContext.getOut();
+		configureContextParams();
 		try {
 			String output = "";
-			if (!isInitialized() && !isInitializedParam()) {
+			if (!initialized && !isInitializedParam()) {
 				out.write(init());
 			}
@@ -74,6 +76,36 @@
 
 	/**
-	 * 
-	 * @return
+	 * Adds to config params from pageContext. Used in integration with CKFinder.
+	 */
+	private void configureContextParams() {
+		if (pageContext.getAttribute("ckeditor-params") != null) {
+			@SuppressWarnings("unchecked")
+			Map<String, Map<String, String>> map = 
+								(Map<String, Map<String, String>>)
+										pageContext.getAttribute("ckeditor-params");
+			if (map.get(getCKEditorName()) != null) {
+				parseParamsFromContext(map.get(getCKEditorName()));
+			} else if (map.get("*") != null) {
+				parseParamsFromContext(map.get("*"));
+			}
+		}		
+	}
+
+	/**
+	 * Parse params from pageContext attribute.
+	 * @param map attributes map
+	 */
+	private void parseParamsFromContext(final Map<String, String> map) {
+		if (!map.isEmpty() && config == null) {
+			config = new CKEditorConfig();
+		}
+		for (String key : map.keySet()) {
+			config.addConfigValue(key, map.get(key));
+		}
+	}
+
+	/**
+	 * Check if earlier CKEditor's have initialized ckeditor.js.
+	 * @return true if have.
 	 */
 	private boolean isInitializedParam() {
@@ -184,5 +216,4 @@
 	}
 
-
 	/**
 	 * @return the config attribute
@@ -213,5 +244,8 @@
 	}
 
-
-
+	/**
+	 * gets name of the CKEditor instance. 
+	 * @return name if CKEditor instance.
+	 */
+	protected abstract String getCKEditorName();
 }
