Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11302 closed Bug (invalid)

ACF not working at all

Reported by: santaclaus21 Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 4.3.1
Keywords: Cc:

Description

I'm trying to use ACF. But it's not working for me at all. I was trying to use many configurations even from sample "datafiltering.html", but it has worked for me only aprox 1 for 100 times trying. But it's not working at the moment.

I don't know what I'm doing wrong.

Simple, I've got some plugins loaded (custom 4.3.1) and I'm tring to use:

a) firstly: (config.js) config.allowedContent = 'p';

then:

function podmienEditor(ec) {

if ( editor )

return;

var box = document.getElementById( 'opis_' + ec ); if (box) {

var html = box.innerHTML;

editor = CKEDITOR.replace( 'opis_' + ec , {} );

}

}

I'm going to source edit, and I'm writing "<span style="font-size: 10px;">bla bla bla</span>, switch to normal mode - nothing. One time when I've clicked arrow on keyboard, span was removed. But it was working only 1 time and it's not working for now. Also, I've pasted some tables from MS Word - nothing. No one tag wasn't removed.

So I think, maybe plugins are replacing configuration, I've tried also call config when CKE is running:

function podmienEditor(ec) {

if ( editor )

return;

var box = document.getElementById( 'opis_' + ec ); if (box) {

var html = box.innerHTML;

editor = CKEDITOR.replace( 'opis_' + ec , {

allowedContent: 'p'

} );

}

}

nothing... What I'm doing wrong ???

Change History (2)

comment:1 Changed 6 years ago by Piotrek Koszuliński

Keywords: acf paste word filter removed
Resolution: invalid
Status: newclosed

I'm sorry, but it's not a forum and you're not experiencing a bug but a problem with configuring CKEditor. You can ask your question on http://ckeditor.com/forums

comment:2 Changed 6 years ago by Jakub Ś

NOTE: @santaclaus21 this isn't a forum but place for reporting CKEditor bugs so questions about invalid implementation/configuration are closed immediately.

As for your problem - yes plugins also report allowed tags to ACF. If you are using font-size dropdown for example then this tags will be valid and allowed by ACf because plugin has reported its tags to ACF.
To get better idea about ACF please see below links:

http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1 http://ckeditor.com/blog/CKEditor-4.1-RC-Released http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy