Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12679 closed Task (invalid)

How to prevent adding/changing code on save

Reported by: Jamie Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

How can I make it so that the editor does not automatically add or change any code each time we save? Right now it's adding an arial font tag and also will change our code each time we save.

Change History (4)

comment:1 Changed 9 years ago by Jamie

Also, I tried posting this to the forum on the regular site and it keeps saying that my post is rejected due to spam. :-/

comment:2 Changed 9 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

First of all please make sure that CKEditor is the one changing the code. Please switch to source mode to see if code got changed.

If not, your server side is responsible because JavaScript has nothing to do with saving data. If code gets changed then you can either configure or disable ACF. Please know however that not everything can be turned off. There is specification that CKEditor needs to follow so if your HTML is incorrect it will get corrected anyway.

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/#!/guide/dev_disallowed_content
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
http://nightly.ckeditor.com/14-03-20-07-05/full/samples/datafiltering.html

comment:3 Changed 9 years ago by Jamie

I definitely am using source code. For example, I will see two of these: <p>&nbsp;</p>, then I will delete one or change it to a <br> and then the editor will add another <p>&nbsp;</p> or change the <br> to <p>&nbsp;</p>. How can I stop this from happening?

comment:4 Changed 9 years ago by Jakub Ś

Please see http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode and http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode.

CKEditor allows using particular tags on Enter or Shift+Enter. By default this is P but you can of course change it.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy