diff --git a/README.md b/README.md
index 3d1b7ea6d..bb31ee66a 100644
--- a/README.md
+++ b/README.md
@@ -1023,6 +1023,9 @@ editor.getContext();
// Gets the contents of the suneditor
// onlyContents {Boolean}: Return only the contents of the body without headers when the "fullPage" option is true
editor.getContents(onlyContents: Boolean);
+// Gets the current contents with containing parent div(div.sun-editor-editable).
+//
{contents}
+editor.getFullContents(onlyContents: Boolean);
// Gets only the text of the suneditor contents
editor.getText();
diff --git a/sample/html/options.html b/sample/html/options.html
index cde68adf6..c7ef06471 100644
--- a/sample/html/options.html
+++ b/sample/html/options.html
@@ -441,6 +441,8 @@
+ * @param {Boolean} onlyContents Return only the contents of the body without headers when the "fullPage" option is true
+ * @returns {Object}
+ */
+ getFullContents: function (onlyContents) {
+ return '
' + this.getContents(onlyContents) + '
';
+ },
+
/**
* @description Returns HTML string according to tag type and configuration.
* Use only "cleanHTML"