Closed KingDarBoja closed 4 years ago
The toolbar
option does not allow the value true
, remove the option from your config to get the expected behaviour.
I wonder if Covalent uses an underlying EasyMDE instance and is disabling the toolbar. If that's the case, there's no easy way to just use the default without recreating it.
It may be helpful to have a toolbarDefaults, this would also help with expanding the toolbar.
If you want to add one icon to the toolbar, you currently need to recreate the whole thing.
@Ionaru Not sure if this is caused by Covalent component but the removal of the toolbar option disables the toolbar (It doesn't show up). I have opened a similar issue on Covalent repo in case it is caused by some underlying EasyMDE instance as stated by mxgl.
Cheers!
I was able to get the default behaviour by removing the option as stated by Ionaru. Looks like the Covalent readme needs some updating.
Thanks for the help!
Describe the bug This is my first time trying out the library by using Teradata Covalent Text Editor component and so far everything is working fine on a basic setup using Angular 9.
However, there is a possible issue with the library itself, as I had to dig into the options in order to provide the toolbar icons as those doesn't show up if setting
toolbar: true
. Instead, I had to pass each icon name as array of strings instead of default ones.The documentation stated:
Maybe a bug?
To Reproduce
@covalent/text-editor
.npm start
and navigate to http://localhost:4200/Expected behavior Toolbar icons should be displayed
Screenshots With
toolbar: true
With
toolbar: ['bold','italic','heading','|', ...]
Version information Version: 1.43.0 (user setup) Commit: 78a4c91400152c0f27ba4d363eb56d2835f9903a Date: 2020-03-09T19:47:57.235Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363 EasyMDE: 2.9.0
Additional context
My
package.json
file: