naveen-15697

Results comments of naveen-15697

@artf Is there any method similar to `editor.getSelectedToStyle()`. In my case I need to change the style of one particular component and not the selected one. On using component.setStyle({ height:...

> You're doing something wrong, works as expected here https://jsfiddle.net/nfkha41p/ > > Next time, create a reproducible demo first, then open an issue... @artf Here, when I drag a first...

> @pouyamiralayi it doesn't behave as expected. > > If I use `editor.runCommand('open-blocks')` on load, the components icon is not selected. Is appended to the bottom of the style manager...

> > select the first component in the editor > > ``` > editor.select(editor.getComponents().models[0]) > ``` > > cheers! @pouyamiralayi , I tried this too. But it is not working.

@artf , @pouyamiralayi :I need this condition inside the 'canvas:drop' event editor.on('canvas:drop', ()=>{ ... ... // My code to select the first component is here //... ... })

@pouyamiralayi Thanks! It's working now. @artf , But, Why it is not working in 'canvas:drop' event?