Teradata / covalent

Teradata UI Platform built on Angular Material
https://teradata.github.io/covalent/
MIT License
2.23k stars 358 forks source link

Update Docs about Toolbar Icons #1669

Closed KingDarBoja closed 4 years ago

KingDarBoja commented 4 years ago

The text-editor example code shows no extra configuration being passed to the td-text-editor component.

However, this component display the entire toolbar with a set of icons which doesn't work if copy & paste the sample code at the docs.

The correct behaviour (not sure if a bug from EasyMDE) is shown below:

 covalentEditorOpts: any = {
    lineWrapping: true,
    toolbar: ['bold', 'italic', 'heading', '|', 'quote'],
 };

The user must pass a set of icon names which are specified at toolbar-icons section from EasyMDE GitHub documentation.

Looks like the default behaviour of setting toolbar: true provide no icons.

Cheers!

KingDarBoja commented 4 years ago

UPDATE By removing the toolbar option (or not specifying it on the editor options), the default icons will show up on the toolbar.

Looks like it got fixed with latest release I think.

Cheers!