Developer forum

Forum » CMS - Standard features » Provider based editor strips Javascript, embed etc.

Provider based editor strips Javascript, embed etc.

Hans Ravnsfjall
Reply

Hi

I have noticed that the Provider based editor, strips all javacript code etc. I know it´s not best practice to put JS in an editor, but sometimes it´s good for quick fixes or tests, and the embed part is useful for youtube videos etc.

Is this a common problem with the provider based editor, or is it a setting or a version issue?

 

regards Hans


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Hans

That is how the editor is configured. There are the JS files that does this - you can enable scripts etc. by enabling a setting in the JS:

http://docs.ckeditor.com/#!/guide/dev_acf

BR Nicolai

 
Hans Ravnsfjall
Reply

Ok, I found by adding   config.allowedContent = true; to the .js configuration file, you are allowed to add script in the editor

 

You must be logged in to post in the forum