Nova Canvas Help

Styling

Matching your front-end

The editor content is styled using Tailwind and its typography extension.

If you want to apply custom styling you can register your own assets, everything is nested under the .nova-canvas-content class.

Scrollable

By default, the editor grows to accommodate the content. However, you can opt to restrict it to a fixed height and use a scrollbar instead:

Canvas::make('Content') ->scrollable()

This will fix the editor at 400px, but you can pass in any height you like as an optional parameter.

Character count

To show a character or word count use either ->characterCount() or ->wordCount().

Last modified: 24 November 2024