Just a quick inquiry: Our Content Management System (CMS) utilizes CKEditor for clients to modify their websites. The front-end styles include the use of a pre tag, which we have customized to our desired appearance. However, when their team members copy and paste content from another site, it alters the styling due to inline styles. To address this issue, I created a script to eliminate all inline styles:
$("pre").attr({style : ""});
Nevertheless, I'm encountering difficulties as certain pre tags require the text-align:center;
inline style. How can I adjust the script to only permit the text-align property on the pre tag?