rt-native 1.0.104 → 1.0.105
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.
- package/README.md +1 -0
- package/package.json +1 -1
- package/rt-native.js +10 -1
package/README.md
CHANGED
|
@@ -388,6 +388,7 @@ rt-native {
|
|
|
388
388
|
| `--rtb-editor-border-radius` | `0px` | Outer corner radius |
|
|
389
389
|
| `--rtb-editor-shadow` | `none` | Outer box shadow |
|
|
390
390
|
| `--rtb-editor-resize` | `auto` | `auto` shows the resize handle; `hidden` removes it |
|
|
391
|
+
| `--rtb-z-index` | `1` | Z-index of the editor container — raise this to stack the editor above surrounding page content |
|
|
391
392
|
|
|
392
393
|
---
|
|
393
394
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rt-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"description": "rt-native HTML Editor is a free native web component that provides accessibility features and a wide variety of elements and customizations that make it one of the most robust and flexible HTML editors available. It allows the programmer to apply custom .css files to the preview window, so see how the content will be displayed in production. The editor uses embedded .svg Google Font Icons and the shadow DOM to isolate the HTML from inheriting the existing page styles. No frameworks, no build step, no dependencies — drop one script tag into any HTML page and you're done.",
|
|
5
5
|
"main": "rt-native.js",
|
|
6
6
|
"exports": {
|
package/rt-native.js
CHANGED
|
@@ -5338,7 +5338,7 @@ const _RTB_SHADOW_CSS = `
|
|
|
5338
5338
|
height: var(--rtb-editor-height, 300px);
|
|
5339
5339
|
display: flex;
|
|
5340
5340
|
flex-direction: column;
|
|
5341
|
-
z-index: 1;
|
|
5341
|
+
z-index: var(--rtb-z-index, 1);
|
|
5342
5342
|
}
|
|
5343
5343
|
.rich-text-box-content-container {
|
|
5344
5344
|
width: 100%;
|
|
@@ -5596,6 +5596,12 @@ const _RTB_SHADOW_CSS = `
|
|
|
5596
5596
|
resize: both;
|
|
5597
5597
|
overflow: hidden;
|
|
5598
5598
|
box-sizing: border-box;
|
|
5599
|
+
position: fixed;
|
|
5600
|
+
top: 50%;
|
|
5601
|
+
left: 50%;
|
|
5602
|
+
transform: translate(-50%, -50%);
|
|
5603
|
+
margin: 0;
|
|
5604
|
+
z-index: 9999;
|
|
5599
5605
|
}
|
|
5600
5606
|
.rtb-preview-dialog[open] {
|
|
5601
5607
|
display: flex;
|
|
@@ -5892,6 +5898,9 @@ rt-native {
|
|
|
5892
5898
|
/* Placeholder */
|
|
5893
5899
|
--rtb-placeholder-color: #9ca3af;
|
|
5894
5900
|
|
|
5901
|
+
/* Stacking context — raise the entire editor above surrounding content */
|
|
5902
|
+
--rtb-z-index: 1;
|
|
5903
|
+
|
|
5895
5904
|
/* Modals / dialogs */
|
|
5896
5905
|
--rtb-modal-bg: #ffffff;
|
|
5897
5906
|
--rtb-modal-text: #242424;
|