I am in the situation that the content of my html-fields which are stored in a database already contains data that was pasted from MSWord and that still contains MSWord tags. Is there a way to clean the current content of the editor e.g. call the cleanword functionality directly from javascript without actualy pasting the data from a clipboard?
Fri, 01/22/2010 - 17:12
#1

I too would like to know if
I too would like to know if this sort of thing is possible. For example I'd like to be able to have the cleanup code run on startup, paste and save (submit)
Couple of things you can
Couple of things you can check. Make sure you don't have this in config.js:
Also this:
pasteFromWordCleanupFile
pasteFromWordPromptCleanup
And a bunch of other stuff. Basically check our API. Plenty of options there. I'm sure you ACF can also be used here too.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Hi Seb, thanks for replying,
Hi Seb, thanks for replying, very few people with CKEditor knowledge seem to be active in this forum so I appreciate your response.
I started trying to configure ACF and honestly, it's a nightmare. The documentation itself admits that ACF
That seems to indicate that there is almost a 'secret sauce' within CKEditor that will chop and change the settings applied in the config yet ACF is also invoked via that same config object.
One problem seems to be that the documentation for the options that are possibly influenced by ACF does not mention this.For example this removeFormatAttributes documentation contains no mention that ACF may influence removeFormatAttributes.
In this post you can see that I've tried to set up the removeFormatAttributes and removeFormatTags options, but the [ 'cleanup' ] button in the toolbar definition does not display. Is my ACF
optoin preventing the cleanup button from appearing on the toolbar?
With this button missing I cannot allow users to invoke the remove* options manually by clicking the button. Additionally I cannot seem to find the necessary events nor method(s) / functions that I need to attach the cleanup (remove format?) routines to in order to have those routines invoke when the form submission, pasting or switching from source to WYSIWIG events are fired. These are all events when I think running cleanup routines would be useful.
I really have spent a lot of time reading the documentation so that I'm not asking questions that are already documented but I am struggling to find the right answers because I am not sure there's enough examples. Mainly the documentation is super-short or very specific guides, and reference. Or it is seemingly vague. For example, again in the removeFormatAttributes description, there's this:
That "remove format" text is styled as if it's the name of an event, method or something else, but it's not linked to any explanation of how to call it, and it's it a bit strange to have a name with a space in it?
If I use something like jsFiddle to demonstrate the setup problems I'm having, would you be able to help, or is that level of help only given to paid support clients?