No image plugin is included. We will have a separate plugin from our CMS we will migrate our V3.6 plugin to the new plugin system (we use Coldfusion, not PHP).
We would like people to be able to edit text on page, page may contain an image, but we would not necessarily to have the image plugin.
I had a look at ACF and tried CKEDITOR.config.allowedContent='true', which my understanding of "All available editor features will be activated and input data will not be filtered." and seems to have the opposite effect as for instance H3 tags appear like <P>, and the specific toolbar is ignored.
I have just tried CKEDITOR.filter.allow( 'img' ); and the image disappear. I noticed in your sample file /inlinebycode.html, the same issue occurs, and the picture of the apollo space ship disappears as soon as the page is loaded.
I am using Opera (latest), but tried on FF (latest) same issue.
Thanks for your help.
This editor is great and the work put on this editor is great. Well done guys.
Check: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent - when allowedContent is set to true the ACF is disabled - that means - content won't be filtered at all and all features will be activated. So you understood it incorrectly. You need to leave default value (which is undefined/null) in order to have all features activated and content filtered accordingly to what's allowed by them.
I just tried adding the image plugin and the image showed.
I understand your thinking, but in reality, I think it would make sense to be able to show the pictures without necessarily the need for the plugin to be on the bar.
In reality most of CKE users want to have purified content when pasting. And if on pasting, then on load data too because otherwise you'll loose content copied from editor and pasted in it.
You can always disable this feature if you don't like it. But it brings new editing quality to most of the users.
And honestly, what's the sense of having image in editor contents if you can't edit it or insert new one? In 90% cases - no sense at all. In all other you can extend allowed content rules or switch off ACF.
If I am understanding this correctly, we need to specify every tag allowed. We have also HTML 5 tags that we would like to edit. It would be easier to allow all as opposed to rewriting the HTML tags. Is there an easy way for this?
On that point, we have seen different types of users over 11 years.
Some people are well able to edit a page. Some others need a bit of restriction as otherwise, all the effort of the designer might be ruined. We had to specify 3 levels of button bars based on the ability of the user to choose colors, text size etc. yet, the underlining HTML is not changed.
Yes, every button which produces something need to have defined allowedContent property specifying all tags this feature needs (produces). E.g. table button produces 'table td th tr tbody caption' plus some attributes.
Check samples/datafiltering.html in your CKEditor 4.1RC package.
As I mentionned above, there may be good reasons why we do not want to give one user the ability to change the text colour, yet another user might be allowed. Because one user is not allowed, when they edit and save the text, the color will be removed. Which is not what we want as the html is altered.
I followed your advice. One thing we want is the ability to use <dd>. Even if it is allowed in the allowed content, since it does not appear to exist elsewhere, it is filtered out. Maybe we need to write a plugin for the <dd> support.
I appreciate you approached this from a "paste" point of view, but from a multiple user point of view, I am not sure this can work.
What would be good would be the ability to allow any content, regardless of the navigation toolbar.
I am going through the online help, maybe I am missing something, but this is a major behavioural change from version 3, and it confuses me a lot.
I'm afraid that you haven't fully understand what options ACF brings. You can set the same ACF rules while having multiple toolbar configurations. Just define config.allowedContent to the full set of features and use it with different toolbar layouts. Or you can use config.extraAllowedContent to extend ACF rules so they always will allow the same set of tags, regardless of activated buttons.
Note that one of the reasons why this feature was introduced is CKEditor deep integration with the Drupal CMS. This case proves ACFs ability to work for multiple users in very configurable environment with backend filtering.
PS.
What would be good would be the ability to allow any content, regardless of the navigation toolbar.
What's your config? Is the
What's your config? Is the image plugin included and image button added to the toolbar? Or maybe you were setting custom allowedContent?
In CKEditor 4.1 RC we introduced Advanced Content Filter about which you can read in the ACF guide and in the blog post.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi Piotrek
Hi Piotrek
No image plugin is included. We will have a separate plugin from our CMS we will migrate our V3.6 plugin to the new plugin system (we use Coldfusion, not PHP).
We would like people to be able to edit text on page, page may contain an image, but we would not necessarily to have the image plugin.
I had a look at ACF and tried CKEDITOR.config.allowedContent='true', which my understanding of "All available editor features will be activated and input data will not be filtered." and seems to have the opposite effect as for instance H3 tags appear like <P>, and the specific toolbar is ignored.
I have just tried CKEDITOR.filter.allow( 'img' ); and the image disappear. I noticed in your sample file /inlinebycode.html, the same issue occurs, and the picture of the apollo space ship disappears as soon as the page is loaded.
I am using Opera (latest), but tried on FF (latest) same issue.
Thanks for your help.
This editor is great and the work put on this editor is great. Well done guys.
Check: http://docs.ckeditor
Check: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent - when allowedContent is set to true the ACF is disabled - that means - content won't be filtered at all and all features will be activated. So you understood it incorrectly. You need to leave default value (which is undefined/null) in order to have all features activated and content filtered accordingly to what's allowed by them.
Second thing - we're now working on guides how to integrate plugin with ACF. For now read my answer in this thread http://ckeditor.com/forums/CKEditor/How-to-set-plugin-required-elements-for-automatic-Advanced-Content-Filter
And the last thing - allowing 'img' is not enough. Your plugin needs to allow for its attributes too. Check this guide http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I just tried adding the image
I just tried adding the image plugin and the image showed.
I understand your thinking, but in reality, I think it would make sense to be able to show the pictures without necessarily the need for the plugin to be on the bar.
hi Piotrek
hi Piotrek
thanks for your prompt reply. I will check this and come back to you.
best regards
Claude
In reality most of CKE users
In reality most of CKE users want to have purified content when pasting. And if on pasting, then on load data too because otherwise you'll loose content copied from editor and pasted in it.
You can always disable this feature if you don't like it. But it brings new editing quality to most of the users.
And honestly, what's the sense of having image in editor contents if you can't edit it or insert new one? In 90% cases - no sense at all. In all other you can extend allowed content rules or switch off ACF.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
hi Piotrek
hi Piotrek
If I am understanding this correctly, we need to specify every tag allowed. We have also HTML 5 tags that we would like to edit. It would be easier to allow all as opposed to rewriting the HTML tags. Is there an easy way for this?
thanks
Claude
On that point, we have seen
On that point, we have seen different types of users over 11 years.
Some people are well able to edit a page. Some others need a bit of restriction as otherwise, all the effort of the designer might be ruined. We had to specify 3 levels of button bars based on the ability of the user to choose colors, text size etc. yet, the underlining HTML is not changed.
Yes, every button which
Yes, every button which produces something need to have defined allowedContent property specifying all tags this feature needs (produces). E.g. table button produces 'table td th tr tbody caption' plus some attributes.
Check samples/datafiltering.html in your CKEditor 4.1RC package.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I think your approach will
I think your approach will cause some problems.
As I mentionned above, there may be good reasons why we do not want to give one user the ability to change the text colour, yet another user might be allowed. Because one user is not allowed, when they edit and save the text, the color will be removed. Which is not what we want as the html is altered.
I followed your advice. One thing we want is the ability to use <dd>. Even if it is allowed in the allowed content, since it does not appear to exist elsewhere, it is filtered out. Maybe we need to write a plugin for the <dd> support.
I appreciate you approached this from a "paste" point of view, but from a multiple user point of view, I am not sure this can work.
What would be good would be the ability to allow any content, regardless of the navigation toolbar.
I am going through the online help, maybe I am missing something, but this is a major behavioural change from version 3, and it confuses me a lot.
I'm afraid that you haven't
I'm afraid that you haven't fully understand what options ACF brings. You can set the same ACF rules while having multiple toolbar configurations. Just define config.allowedContent to the full set of features and use it with different toolbar layouts. Or you can use config.extraAllowedContent to extend ACF rules so they always will allow the same set of tags, regardless of activated buttons.
Note that one of the reasons why this feature was introduced is CKEditor deep integration with the Drupal CMS. This case proves ACFs ability to work for multiple users in very configurable environment with backend filtering.
PS.
Haven't I been clear about that? Quoting myself:
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+