Closed bgrand-ch closed 3 years ago
That because you've updated original commands with your versions (incorrectly). Indeed, if I remove your plugin from the demo everything works as expected. Please check the original copy and paste command, you should clone components before paste, so, your implementation couldn't work.
@artf Thanks for your answer. A link or an example or more explanations please? 😅
Version: 0.16.41
Are you able to reproduce the bug from the demo?
[X] Yes [ ] No
What is the expected behavior?
1) Copy selected parent component (container) to the clipboard. 2) Paste selected parent component (container) from the clipboard (into the same page or an other page). 3) All components keep ID styles and inline styles.
What is the current behavior?
1) Copy selected parent component (container) to the clipboard. 2) Paste selected parent component (container) from the clipboard (into the same page or an other page). 3) Components have lost their ID styles, but not their inline styles.
Components don't have a regenerated style ID, but the same previous ID with a "-2" appended.
Are you able to attach screenshots, screencasts or a live demo?
[X] Yes (attach) [ ] No
https://jsfiddle.net/bgrand_ch/71yuz26p/33/
From the jsfiddle above, follow the next steps :
1) Select one component. 2) Copy this component with
Ctrl/Cmd + C
. 3) Paste the copied component withCtrl/Cmd + V
. 4) All definedstyle
have lost, inline style have preserved.Copy-paste plugin (with Quasar notifications system):