Repository navigation
feat(editor): honour nb_rows on rich text settings and make the editor resizable - #264
Open
erdostom-bot wants to merge 1 commit into
Open
erdostom-bot wants to merge 1 commit into
erdostom-bot wants to merge 1 commit into
Conversation
…r resizable A text setting with `html: true` rendered the Tiptap editor at the uikit default of 4 rows no matter what `nb_rows` said, because the editor setting component never passed it through. Pass it as `rows` so a section can ask for a taller editor, and add `resize-y` to `.ProseMirror` so the author can drag the box taller still. The built tailwind.css is regenerated with `rake app:maglev:tailwindcss:build`; it was stale and also picks up a few utilities already used by components. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> (cherry picked from commit 6aaeea9)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A text setting with
html: truerendered the Tiptap editor at the uikit default of 4 rows no matter whatnb_rowssaid:Maglev::Editor::Settings::Text::RichtextComponentnever passed the option through, even thoughMaglev::Uikit::Form::RichtextComponentalready supportsrowsvia the--number-of-rowsCSS variable.nb_rowsasrows, so a section can opt into a taller editor per setting (e.g.{ id: body, type: text, html: true, nb_rows: 15 }). Settings withoutnb_rowsare unchanged (4 rows).resize-yto.ProseMirrorso the author can drag the box taller still.nb_rowscase.app/assets/builds/maglev/tailwind.cssregenerated withrake app:maglev:tailwindcss:build; it was stale, so the diff also picks up a few utilities already used by components.Motivation: a "Rich text" section used for long agendas/minutes asks for 15 rows and was getting 4.
Tests: component specs green; RuboCop clean.
🤖 Generated with Claude Code