@lotte-innovate/ui-component-test 0.0.98 → 0.0.99
Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ var editorVariants = cva('', {
|
|
43
43
|
});
|
44
44
|
export var Editor = forwardRef(function (_a, ref) {
|
45
45
|
var className = _a.className, size = _a.size, scaling = _a.scaling, tinymceScriptSrc = _a.tinymceScriptSrc, props = __rest(_a, ["className", "size", "scaling", "tinymceScriptSrc"]);
|
46
|
-
return (_jsx("div", { ref: ref, className: cn(editorVariants({ size: size, scaling: scaling }), className), children: _jsx(EditorUI, __assign({ tinymceScriptSrc: "/tinymce/tinymce.min.js", initialValue: "", init: {
|
46
|
+
return (_jsx("div", { ref: ref, className: cn(editorVariants({ size: size, scaling: scaling }), className), children: _jsx(EditorUI, __assign({ tinymceScriptSrc: "public/tinymce/tinymce.min.js", initialValue: "", init: {
|
47
47
|
height: '100%',
|
48
48
|
menubar: false,
|
49
49
|
// plugins: ['image', 'code', 'link', 'table'],
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r}from"react";import{Editor as
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r}from"react";import{Editor as i}from"@tinymce/tinymce-react";import{cva as e}from"class-variance-authority";import{scalingVariants as a}from"../../constants.mjs";import{cn as n}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(t){for(var r,i=1,e=arguments.length;i<e;i++)for(var a in r=arguments[i])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},c.apply(this,arguments)},o=function(t,r){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(e=Object.getOwnPropertySymbols(t);a<e.length;a++)r.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(i[e[a]]=t[e[a]])}return i},s=e("",{variants:{scaling:c({},a),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=r((function(r,e){var a=r.className,m=r.size,l=r.scaling;r.tinymceScriptSrc;var p=o(r,["className","size","scaling","tinymceScriptSrc"]);return t("div",{ref:e,className:n(s({size:m,scaling:l}),a),children:t(i,c({tinymceScriptSrc:"public/tinymce/tinymce.min.js",initialValue:"",init:{height:"100%",menubar:!1}},p))})}));m.displayName="Editor";export{m as Editor,m as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|