@lotte-innovate/ui-component-test 0.0.99 → 0.0.101
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: "public/tinymce/tinymce.
|
46
|
+
return (_jsx("div", { ref: ref, className: cn(editorVariants({ size: size, scaling: scaling }), className), children: _jsx(EditorUI, __assign({ tinymceScriptSrc: "public/tinymce/tinymce.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 e}from"@tinymce/tinymce-react";import{cva as i}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,e=1,i=arguments.length;e<i;e++)for(var a in r=arguments[e])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},c.apply(this,arguments)},o=function(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)r.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(e[i[a]]=t[i[a]])}return e},s=i("",{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"}}),l=r((function(r,i){var a=r.className,l=r.size,m=r.scaling;r.tinymceScriptSrc;var p=o(r,["className","size","scaling","tinymceScriptSrc"]);return t("div",{ref:i,className:n(s({size:l,scaling:m}),a),children:t(e,c({tinymceScriptSrc:"public/tinymce/tinymce.js",initialValue:"",init:{height:"100%",menubar:!1}},p))})}));l.displayName="Editor";export{l as Editor,l as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|