react-next-editor-js 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/styles.css +20 -0
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -195,6 +195,26 @@
195
195
  background: var(--rne-page-background);
196
196
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
197
197
  border-radius: 2px;
198
+ /* Lay the page out as a column so the editable surface can fill it: the
199
+ contenteditable is otherwise only as tall as its text, leaving the empty
200
+ area below the last line non-clickable (the caret could only be placed on
201
+ existing text). Filling the page makes the whole surface clickable. */
202
+ display: flex;
203
+ flex-direction: column;
204
+ }
205
+
206
+ /* Single-flow only (paged mode positions its own mount/ProseMirror absolutely). */
207
+ .rne-page .rne-mount {
208
+ display: flex;
209
+ flex-direction: column;
210
+ flex: 1 1 auto;
211
+ min-height: 0;
212
+ }
213
+
214
+ .rne-page .ProseMirror {
215
+ flex: 1 1 auto;
216
+ /* The editable area fills the page; clicking anywhere within it places the
217
+ caret (ProseMirror maps a click below the last line to the nearest position). */
198
218
  }
199
219
 
200
220
  .rne-canvas--plain {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-next-editor-js",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A comprehensive, performant, secure, configurable and pluggable Word-style rich document editor for React/Next.js, built directly on ProseMirror, with DOCX/PDF/text export and offline-first persistence.",
5
5
  "license": "MIT",
6
6
  "author": "stellarx57",