cleanboy3000 Posted July 23, 2018 Share Posted July 23, 2018 Hi there, Firstly my apologies if this has already been asked but I have searched both Google and these forums for an answer and haven't found something that matches exactly. I am building a site for a client and I would like them to be able to add and edit things without having to touch code at all...even if its having to go in and modify the html within ckeditor. I am currently adding in content to the site...just copying and pasting from a Libreoffice document, using the paste from word feature in ckeditor but it seems to add inline styles very frustratingly: <p style="margin-bottom:0cm"><span style="line-height:100%">Industry sectors represented at the show will include:</span></p> <p style="margin-bottom:0cm"> </p> <p style="margin-bottom:0cm"><span style="line-height:100%">Automotive, Aerospace, Construction, Marine, Energy, Electronics, Medical, Sports Equipment and Defence.</span></p> <p style="margin-bottom:0cm"> </p> <p style="margin-bottom:0cm"><span style="line-height:100%">Attendee job titles will include:</span></p> <p style="margin-bottom: 0cm; line-height: 100%"> </p> <table border="1" cellpadding="1" cellspacing="1" class="table table-content" style="width:100%;"> <thead> <tr> <th scope="col"> <p style="margin-bottom: 0cm; text-align: left;"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Application Development Engineer</font></font></span></p> </th> <th scope="col"> <p style="margin-bottom: 0cm; text-align: left;"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Materials Buyer</font></font></span></p> </th> <th scope="col"> <p style="margin-bottom: 0cm; text-align: left;"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Process Engineer</font></font></span></p> </th> </tr> </thead> <tbody> <tr> <td> <p style="margin-bottom:0cm"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Chief Executive Officer (CEO)</font></font></span></p> </td> <td> <p style="margin-bottom:0cm"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Materials Coordinator</font></font></span></p> </td> <td> <p style="margin-bottom:0cm"><span style="line-height:100%"><font color="#000000"><font face="Calibri, serif">Procurement</font></font></span></p> </td> </tr> Above is a sample of what ckeditor generates from me pasting. I dont want any inline styles. I dont want it to create spans with inline styles. Within the table it is adding font elements...I do not want these. I thought I have the settings within processwire set up correctly but apparently I do not. (See attached for my settings for this field). Any help would be greatly appreciated! Cleanboy Link to comment Share on other sites More sharing options...
dragan Posted July 23, 2018 Share Posted July 23, 2018 You should activate ACF + HTML Purifier. 2 Link to comment Share on other sites More sharing options...
Robin S Posted July 24, 2018 Share Posted July 24, 2018 Discussed recently here: 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now