linkesch / medium-editor-insert-plugin

jQuery insert plugin for MediumEditor
http://orthes.github.io/medium-editor-insert-plugin
MIT License
1.22k stars 352 forks source link

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

Open AmirMustafa opened 7 years ago

AmirMustafa commented 7 years ago

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');

linkesch commented 6 years ago

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