diff --git a/jsf/jsf-widgets/src/META-INF/sakai-jsf.tld b/jsf/jsf-widgets/src/META-INF/sakai-jsf.tld
index c6acc2486ac1..24f2089d5338 100644
--- a/jsf/jsf-widgets/src/META-INF/sakai-jsf.tld
+++ b/jsf/jsf-widgets/src/META-INF/sakai-jsf.tld
@@ -1384,6 +1384,16 @@
+
+ enableFullPage
+ false
+ false
+
+ If true, this will set CKEditor's fullPage property, which captures the entire HTML document
+ with html, head and body tags.
+
+
+
buttonSet
false
diff --git a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java
index 4c7f5f31c03f..01e0f9c1841c 100644
--- a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java
+++ b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/InputRichTextRenderer.java
@@ -159,6 +159,10 @@ public void encodeBegin(FacesContext context, UIComponent component)
String buttonSet = (String) RendererUtil.getAttribute(context, component, "buttonSet");
// Comma delimited list of toolbar command buttons registered with component.
String buttonList = (String) RendererUtil.getAttribute(context, component, "buttonList");
+
+ //If true, send full documents via CKEditor
+ String enableFullPage = (String) RendererUtil.getAttribute(context, component, "enableFullPage");
+
/**
* @todo need to do something with extensions.
*/
@@ -229,9 +233,24 @@ public void encodeBegin(FacesContext context, UIComponent component)
writer.write("");
if (!"true".equals(textareaOnly))
- {
- writer.write("");
- }
+ {
+ if (enableFullPage != null && "true".equals(enableFullPage))
+ {
+ writer.write("");
+
+ }
+ else
+ {
+ writer.write("");
+ }
+ }
writer.write("\n");
diff --git a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/tag/InputRichTextTag.java b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/tag/InputRichTextTag.java
index ee1bd96eb404..33d2c8a1b33e 100644
--- a/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/tag/InputRichTextTag.java
+++ b/jsf/jsf-widgets/src/java/org/sakaiproject/jsf/tag/InputRichTextTag.java
@@ -62,6 +62,7 @@ public class InputRichTextTag
private String width;
private String height;
private String textareaOnly;
+ private String enableFullPage;
private String buttonSet;
private String buttonList;
private String javascriptLibraryURL;
@@ -133,6 +134,7 @@ protected void setProperties(UIComponent component)
TagUtil.setInteger(component, "width", width);
TagUtil.setInteger(component, "height", height);
TagUtil.setString(component, "textareaOnly", textareaOnly);
+ TagUtil.setString(component, "enableFullPage", enableFullPage);
TagUtil.setString(component, "buttonSet", buttonSet);
TagUtil.setString(component, "buttonList", buttonList);
TagUtil.setString(component, "javascriptLibraryURL", javascriptLibraryURL);
@@ -170,6 +172,7 @@ public void release()
width = null;
height = null;
textareaOnly = null;
+ enableFullPage = null;
buttonSet = null;
buttonList = null;
javascriptLibraryURL = null;
@@ -234,6 +237,17 @@ public void setTextareaOnly(String textareaOnly)
{
this.textareaOnly = textareaOnly;
}
+
+ public String getEnableFullPage()
+ {
+ return enableFullPage;
+ }
+
+ public void setEnableFullPage(String enableFullPage)
+ {
+ this.enableFullPage = enableFullPage;
+ }
+
public String getButtonSet()
{