Replies: 1 comment 1 reply
-
Hi, @vamshi0. If you use vscode, I strongly recommend doing it like this: Press ctrl+shift+h On the first line, write which word you want to replace, and on the second which it will be replaced. So properties like margin: 0 0 0 will not be selected, only the ones with "px", for example. You you have any questions, let´s talk about! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
i want to change unit of all empty integer CSS properties at once,
i have tried,
const units = ["px", "%", "rem"];
const properties = editor.StyleManager.getProperties("dimension");
properties.map(property => property.set("unit", units[1]));
but it is selecting the property values and including them in the code,
margin: 0 0 0 0;
padding: 0 0 0 0;
border: 0;
border-radius:0;
is there any way to change units without selecting the property values ?
Thanks in Advance..!
Beta Was this translation helpful? Give feedback.
All reactions