Skip to content

Commit

Permalink
Suggest using allowedContent = true in full page mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wwalc committed Mar 6, 2013
1 parent b307b65 commit fda580e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions plugins/docprops/samples/docprops.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ <h1 class="samples">
<pre class="samples">
CKEDITOR.replace( '<em>textarea_id</em>', {
<strong>fullPage: true</strong>,
<strong>extraPlugins: 'docprops'</strong>
<strong>extraPlugins: 'docprops'</strong>,
<strong>allowedContent: true</strong>
});
</pre>
<p>
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
the <code>&lt;textarea&gt;</code> element to be replaced.
</p>
<p>
The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
Setting this option is not obligatory, but in full page mode there is a strong chance that one may want be able to freely enter any HTML content in source mode without any limitations.
</p>
</div>
<form action="../../../samples/sample_posteddata.php" method="post">
<label for="editor1">
Expand All @@ -50,7 +55,8 @@ <h1 class="samples">

CKEDITOR.replace( 'editor1', {
fullPage: true,
extraPlugins: 'docprops'
extraPlugins: 'docprops',
allowedContent: true
});

</script>
Expand Down
8 changes: 7 additions & 1 deletion plugins/wysiwygarea/samples/fullpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ <h1 class="samples">
</p>
<pre class="samples">
CKEDITOR.replace( '<em>textarea_id</em>', {
<strong>fullPage: true</strong>
<strong>fullPage: true</strong>,
<strong>allowedContent: true</strong>
});
</pre>
<p>
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
the <code>&lt;textarea&gt;</code> element to be replaced.
</p>
<p>
The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
Setting this option is not obligatory, but in full page mode there is a strong chance that one may want be able to freely enter any HTML content in source mode without any limitations.
</p>
</div>
<form action="../../../samples/sample_posteddata.php" method="post">
<label for="editor1">
Expand All @@ -49,6 +54,7 @@ <h1 class="samples">

CKEDITOR.replace( 'editor1', {
fullPage: true,
allowedContent: true,
extraPlugins: 'wysiwygarea'
});

Expand Down

0 comments on commit fda580e

Please sign in to comment.