You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-1
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,8 @@ var opts = {
81
81
togglePreview:'Toggle Preview Mode',
82
82
toggleEdit:'Toggle Edit Mode',
83
83
toggleFullscreen:'Enter Fullscreen'
84
-
}
84
+
},
85
+
autogrow:false
85
86
}
86
87
var editor =newEpicEditor(opts);
87
88
```
@@ -208,6 +209,26 @@ var editor = new EpicEditor(opts);
208
209
<td>The tooltip text that appears when hovering the fullscreen icon.</td>
209
210
<td><code>Enter Fullscreen</code></td>
210
211
</tr>
212
+
<tr>
213
+
<td><code>autogrow</code></td>
214
+
<td>Whether to autogrow EpicEditor to fit its contents. If autogrow is desired one can either specify <code>true</code>, meaning to use default autogrow settings, or an object to define custom settings</td>
215
+
<td><code>false</code></td>
216
+
</tr>
217
+
<tr>
218
+
<td><code>autogrow.minHeight</code></td>
219
+
<td>The minimum height (in pixels) that the editor should ever shrink to. This may also take a function that returns the desired minHeight if this is not a constant, or a falsey value if no minimum is desired</td>
220
+
<td><code>80</code></td>
221
+
</tr>
222
+
<tr>
223
+
<td><code>autogrow.maxHeight</code></td>
224
+
<td>The maximum height (in pixels) that the editor should ever grow to. This may also take a function that returns the desired maxHeight if this is not a constant, or a falsey value if no maximum is desired</td>
225
+
<td><code>false</code></td>
226
+
</tr>
227
+
<tr>
228
+
<td><code>autogrow.scroll</code></td>
229
+
<td>Whether the page should scroll to keep the caret in the same vertical place while autogrowing (recommended for mobile in particular)</td>
0 commit comments