media-embed/mediaembedresize/utils/getselectedmediaembedwidthinunits
module
Functions
getSelectedMediaEmbedWidthInUnits( editor, targetUnit ) → DimensionWithUnit | nullinternalmodule:media-embed/mediaembedresize/utils/getselectedmediaembedwidthinunits~getSelectedMediaEmbedWidthInUnitsReturns media embed width in specified units after resize.
* If no media embed is selected or command is disabled, `null` will be returned. * If `targetUnit` percentage is passed then it will return width percentage relative to its ancestor.Copy codeParameters
editor : EditorEditor instance.
targetUnit : stringUnit in which dimension will be returned.
Returns
DimensionWithUnit | nullParsed media embed width after resize (with unit).