kpumuk / codecolorer

WordPress plugin which allows you to insert code snippets into the post with nice syntax highlighting.
https://kpumuk.info/projects/wordpress-plugins/codecolorer/
56 stars 14 forks source link

<code inline="true"> bug #6

Closed TheBox193 closed 7 years ago

TheBox193 commented 11 years ago

Steps to reproduce: -Create a new blog post -Type a paragraph that has inline code that you wish to color code -Switch the writting mode in wordpress to 'Text' as to edit the HTML markup for the post. -Add <code inline="true"> and </code> around the code to be colored. -Toggle to 'Visual' editor and back. -inline attribute will now be missing.

This is caused by the visual editor validating the HTML, naturally 'inline' is not a valid attribute. A fix is to add inline as a valid attribute. Source. Is it possible during plugin install to add all attributes CC uses as to avoid having them stripped? Possible solution

kpumuk commented 7 years ago

Fixed in https://github.com/kpumuk/codecolorer/commit/d14843c9e6594bad5d14c4ee0a77b0440ca129ff

Thank you

TheBox193 commented 7 years ago

Nice.