jodit
jodit copied to clipboard
issues with text-alignment button on Playground & ESM
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.
-
ESM version should should show text-alignment button correctly.
up
@CorentinFortes I tried the latest version of Jodit, it works now. Instead of "left" use "align" in the buttons array.
Hello,
sorry i just have seen your message, thank you verry much for your help i will try this ASAP : )