@elia-ori/editor 0.1.13 → 0.1.15

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/dist/index.cjs CHANGED
@@ -6158,7 +6158,8 @@ function EliaEditor({
6158
6158
  className,
6159
6159
  editorClassName,
6160
6160
  autofocus = false,
6161
- readOnly = false
6161
+ readOnly = false,
6162
+ embedded = false
6162
6163
  }) {
6163
6164
  const isMobile = useIsBreakpoint();
6164
6165
  const { height } = useWindowSize();
@@ -6252,13 +6253,13 @@ function EliaEditor({
6252
6253
  editor.setEditable(!readOnly);
6253
6254
  }
6254
6255
  }, [readOnly, editor]);
6255
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: cn("simple-editor-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react86.EditorContext.Provider, { value: { editor }, children: [
6256
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: cn("simple-editor-wrapper", embedded && "simple-editor-embedded", className), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react86.EditorContext.Provider, { value: { editor }, children: [
6256
6257
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6257
6258
  Toolbar,
6258
6259
  {
6259
6260
  ref: toolbarRef,
6260
6261
  style: {
6261
- ...isMobile ? {
6262
+ ...isMobile && !embedded ? {
6262
6263
  bottom: `calc(100% - ${height - rect.y}px)`
6263
6264
  } : {}
6264
6265
  },