Skip to content

Commit fda580e

Browse files
committed
Suggest using allowedContent = true in full page mode
1 parent b307b65 commit fda580e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

plugins/docprops/samples/docprops.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ <h1 class="samples">
3030
<pre class="samples">
3131
CKEDITOR.replace( '<em>textarea_id</em>', {
3232
<strong>fullPage: true</strong>,
33-
<strong>extraPlugins: 'docprops'</strong>
33+
<strong>extraPlugins: 'docprops'</strong>,
34+
<strong>allowedContent: true</strong>
3435
});
3536
</pre>
3637
<p>
3738
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
3839
the <code>&lt;textarea&gt;</code> element to be replaced.
3940
</p>
41+
<p>
42+
The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
43+
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.
44+
</p>
4045
</div>
4146
<form action="../../../samples/sample_posteddata.php" method="post">
4247
<label for="editor1">
@@ -50,7 +55,8 @@ <h1 class="samples">
5055

5156
CKEDITOR.replace( 'editor1', {
5257
fullPage: true,
53-
extraPlugins: 'docprops'
58+
extraPlugins: 'docprops',
59+
allowedContent: true
5460
});
5561

5662
</script>

plugins/wysiwygarea/samples/fullpage.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ <h1 class="samples">
2929
</p>
3030
<pre class="samples">
3131
CKEDITOR.replace( '<em>textarea_id</em>', {
32-
<strong>fullPage: true</strong>
32+
<strong>fullPage: true</strong>,
33+
<strong>allowedContent: true</strong>
3334
});
3435
</pre>
3536
<p>
3637
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
3738
the <code>&lt;textarea&gt;</code> element to be replaced.
3839
</p>
40+
<p>
41+
The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering.
42+
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.
43+
</p>
3944
</div>
4045
<form action="../../../samples/sample_posteddata.php" method="post">
4146
<label for="editor1">
@@ -49,6 +54,7 @@ <h1 class="samples">
4954

5055
CKEDITOR.replace( 'editor1', {
5156
fullPage: true,
57+
allowedContent: true,
5258
extraPlugins: 'wysiwygarea'
5359
});
5460

0 commit comments

Comments
 (0)