Skip to content

Commit

Permalink
version up: 2.43.11
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jun 18, 2022
1 parent f18a2a9 commit 66a6a2c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.43.10",
"version": "2.43.11",
"description": "Pure JavaScript based WYSIWYG web editor",
"author": "JiHong.Lee",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions sample/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ <h4 style="color: #b94a48;">--Layout</h4>
<label><input type="checkbox" id="stickyToolbar">&nbsp;&nbsp;stickyToolbar</label>
<input type="text" id="stickyToolbar_value" placeholder="Number, ...px">
<br><br>
<label><input type="checkbox" id="hideToolbar">&nbsp;&nbsp;hideToolbar</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br><br>
<label><input type="checkbox" id="fullScreenOffset">&nbsp;&nbsp;fullScreenOffset</label>
<input type="text" id="fullScreenOffset_value" placeholder="Number, ...px">
<br><br>
Expand Down Expand Up @@ -614,6 +616,7 @@ <h2 class="sub-title">Applied options</h2>
toolbarWidth: document.getElementById('toolbarWidth').checked ? document.getElementById('toolbarWidth_value').value : undefined,
toolbarContainer: document.getElementById('toolbarContainer').checked ? '#custom_toolbar' : undefined,
stickyToolbar: document.getElementById('stickyToolbar').checked ? document.getElementById('stickyToolbar_value').value : undefined,
hideToolbar: document.getElementById('hideToolbar').checked ? true : undefined,
fullScreenOffset: document.getElementById('fullScreenOffset').checked ? document.getElementById('fullScreenOffset_value').value : undefined,
iframe: document.getElementById('iframe').checked ? true : undefined,
fullPage: document.getElementById('fullPage').checked? true : undefined,
Expand Down
4 changes: 4 additions & 0 deletions src/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export interface SunEditorOptions {
* Top offset value of "sticky toolbar".
*/
stickyToolbar?: number | string;
/**
* The toolbar is rendered hidden.
*/
hideToolbar?: boolean;
/**
* Top offset value of "full Screen".
*/
Expand Down

0 comments on commit 66a6a2c

Please sign in to comment.