Jump to content

HTML Source code editor stripping attributes


Sinmok
 Share

Recommended Posts

Hi all,

I'm having an issue with the HTML source editor on both TinyMCE and CKEditor formatting.

I have a few images that I've inserted into a content field but every time I try to add an inline 'style' to these images, the style is automatically stripped when I click 'update'.

I need to be able to add inline styles to these tags.

Does anyone know how to prevent the editor from resetting the tags to default when I click update?

Thanks

Edit: Figured it out.Open CKEditors config.js and add 

config.allowedContent = true;

  • Like 1
Link to comment
Share on other sites

You should not modify files in the /core/ directory - they get lost when updating Pw :)

Go to Setup > Fields > your_field > Input > TinyMce Advanced Configuration

There you can set your style attribute to valid elements.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...