jodit icon indicating copy to clipboard operation
jodit copied to clipboard

issues with text-alignment button on Playground & ESM

Open julianpoemp opened this issue 1 year ago • 1 comments

Jodit Version: v.4.0.6

Browser: Firefox, Chrome OS: MacOS Is React App: False

{
    maxHeight: 300,
    buttons: ["left"],
    statusbar: false,
    placeholder: 'Please write a message in German or English...',
}
import 'jodit/esm/plugins/justify/justify.js';

was included before calling Jodit.make(). I can't provide a full ESM example because the justify plugin is imported to an Angular app that uses the ngx-jodit package that initializes using Jodit.make(). You can find the Jodit.make() call here.

Expected behavior:

Should show the text-alignment button as dropdown button, not simple button.

Actual behavior:

  • Toggling "left" on/off on Playground example removes dropdown for text-alignment. Also if you toggle any other button. Bildschirmfoto 2024-02-02 um 15 01 28 Bildschirmfoto 2024-02-02 um 15 02 02

  • ESM version should should show text-alignment button correctly.

julianpoemp avatar Feb 02 '24 14:02 julianpoemp

up

CorentinFortes avatar Feb 21 '24 08:02 CorentinFortes

@CorentinFortes I tried the latest version of Jodit, it works now. Instead of "left" use "align" in the buttons array.

julianpoemp avatar Mar 08 '24 20:03 julianpoemp

Hello,

sorry i just have seen your message, thank you verry much for your help i will try this ASAP : )

CorentinFortes avatar Mar 26 '24 13:03 CorentinFortes