Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Insert Plugin Slideshow image not working fine when fetched from database(PHP & MySql) #438

Open
AmirMustafa opened this issue Aug 10, 2017 · 1 comment

Comments

@AmirMustafa
Copy link

Hello Sir,
I have successfully integrated insert plugin in Medium Editor. I am using PHP for saving technology. After Uploading multiple images, when I hit play button for slideshow, it works fine in editor. Is there a way to dynamically change the images while fetching data(i.e. slideshow image remains static when image is fetched)

I have added my medium editor code:

/* ====================== For Image Grid Play functionality: Start ====================== */
$(function () {
$('.editable').mediumInsert({
editor: editor,
addons: {
images: {
uploadScript: null,
deleteScript: null,
//captionPlaceholder: 'Type caption for image',
styles: {
slideshow: {
label: '',
added: function ($el) {
$el
.data('cycle-center-vert', true)
.cycle({
slides: 'figure'
});
},
removed: function ($el) {
$el.cycle('destroy');
}
}
},
actions: null
}
}
});
});

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','../../www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-44692164-1', 'auto');
ga('send', 'pageview');
</script>
@linkesch
Copy link
Owner

I'm not sure I follow. Can you repro your problem on https://jsfiddle.net or similar service?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants