aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 248 forks source link

On ajax load crayon-syntax-highlighter not working properly #353

Open apurbajnu opened 8 years ago

apurbajnu commented 8 years ago

On ajax load crayon-syntax-highlighter not working properly. after one load without refresh css file working properly . But other copy or details button not working after ajax loading. How to solve this problem ?

apurbajnu commented 8 years ago

Really need some fixing to work with ajax.

tyl3r commented 7 years ago

Happen to me too, i have ajax load more button in my site with "Ajax Pagination and Infinite Scroll By Malinky", when i load the posts the crayon style, options and buttons doesn't work at all, any idea?

I fixed same problem with colorbox lightbox adding a simple callback in plugin options:

$("a.colorbox").colorbox({maxWidth:"98%", maxHeight:"98%"});

But the crayon load is more complex and i don't know what i need to add to fix it :/