#The lexicalEditor keeps using the inline toolbar after it's been removed

3 messages · Page 1 of 1 (latest)

solemn pollen
#

Hello,
I have the following code:

{
  name: "content",
  type: "richText",
  editor: lexicalEditor({
    features: ({ rootFeatures }) => {
      return [
        ...rootFeatures,
        HeadingFeature({
          enabledHeadingSizes: ["h2", "h3", "h4", "h5"],
        }),
        FixedToolbarFeature(),
      ];
    },
  }),
  label: "Content",
},

I'd like to use the fixed toolbar only, but in the admin, I still see an inline toolbar. How can I remove it?

undone zenithBOT
crystal finch
#

@solemn pollen I think you have to leave out the ...rootFeatures just include the features you like yourself.