tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
327 stars 92 forks source link

Issue in showing bullet and numeric list #334

Closed uttam-panchal-nividous closed 10 months ago

uttam-panchal-nividous commented 1 year ago

I am using Angular 15.

My editor code is like this: plugins: ['advlist autolink lists link image charmap print preview anchor', 'searchreplace visualblocks code fullscreen', 'insertdatetime media table contextmenu paste' ], toolbar: 'undo redo | bold italic backcolor | bullist numlist outdent indent | removeformat'

It is not showing bullet and numeric lists. Please see below.

image

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3082

EliJArmstrong commented 1 year ago

Hello,

How I was able to get advlist and lists to show was to set the plugins and toolbar in the HTML element.

<editor
     apiKey="" 
     plugins="preview  advlist lists wordcount help charmap quickbars emoticons"
     toolbar= 'undo redo | bold italic backcolor | bullist numlist outdent indent | removeformat'
></editor>

image

shanmen-tiny commented 10 months ago

Hello @uttam-panchal-nividous,

Sorry for not getting back to this earlier. Yes, @EliJArmstrong's example is correct. It seems like you're using a TinyMCE 6 version but a TinyMCE 5 format to load the plugins. Arrays of space-separated strings are no longer supported in TinyMCE 6 and only these three plugin loading formats are supported:

  1. An array of strings
  2. A space-separated string
  3. A comma-separated string

Reference: https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/#plugin-loading-format-change

Feel free to reopen this issue if the issue persists. Thank you!