Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

In-place editor: Using crop#launchwithratio inline

arosellor
Level 1
Level 1

Is it possible to configure the in-place editor to use the "launchwithratio" feature inline (without needing to edit it in full-screen view?)

I added it in the configuration as shown in following snippet. I added crop#launchwithratio" to the inline configurtation. The option appears in my toolbar, but when I press any of the aspect ratios, nothing seems to work (no action is performed)

<ui jcr:primaryType="nt:unstructured">
  <inline
   jcr:primaryType="nt:unstructured"
   toolbar="[crop#launch,crop#launchwithratio,history#undo,history#redo,fullscreen#fullscreen,control#close,control#finish]">
  <replacementToolbars
   jcr:primaryType="nt:unstructured"
   crop="[crop#identifier,crop#unlaunch,crop#confirm]"/>
  </inline>
  <fullscreen jcr:primaryType="nt:unstructured">
  <toolbar
   jcr:primaryType="nt:unstructured"
   left="[crop#launchwithratio,rotate#right,map#launch,flip#horizontal,flip#vertical,zoom#reset100,zoom#popupslider]"
   right="[history#undo,history#redo,fullscreen#fullscreenexit]"/>
  <replacementToolbars jcr:primaryType="nt:unstructured">
  <crop
   jcr:primaryType="nt:unstructured"
   left="[crop#identifier]"
   right="[crop#unlaunch,crop#confirm]"/>
  <map
   jcr:primaryType="nt:unstructured"
   left="[map#rectangle,map#circle,map#polygon]"
   right="[map#unlaunch,map#confirm]"/>
  </replacementToolbars>
  </fullscreen>
</ui>

Thanks in advance!

1 Reply
arosellor
Level 1
Level 1

Btw, that's the error I get in console for any aspect ratio:

"ImageEditor: Could not parse matrix string scale(1) rotate(180deg) scaleX(1) scaleY(1)"