@lotte-innovate/ui-component-test 0.0.120 → 0.0.121
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ var editorVariants = cva('', {
|
|
44
44
|
});
|
45
45
|
export var Editor = forwardRef(function (_a, ref) {
|
46
46
|
var className = _a.className, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "size", "scaling"]);
|
47
|
-
return (_jsx("div", { className: cn(editorVariants({ size: size, scaling: scaling }), className), ref: ref, children: _jsx(EditorUI, __assign({ tinymceScriptSrc:
|
47
|
+
return (_jsx("div", { className: cn(editorVariants({ size: size, scaling: scaling }), className), ref: ref, children: _jsx(EditorUI, __assign({ tinymceScriptSrc: '@lotte-innovate/ui-component-test/public/tinymce/tinymce.min.js', init: {
|
48
48
|
width: '100%',
|
49
49
|
height: '100%',
|
50
50
|
plugins: 'link table code lists codesample',
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as o}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as i}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"marked";var c=function(){return c=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)},l=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o},s=n("",{variants:{scaling:c({},i),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=e((function(e,n){var i=e.className,m=e.size,u=e.scaling,
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as o}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as i}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as a}from"marked";var c=function(){return c=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)},l=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o},s=n("",{variants:{scaling:c({},i),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),m=e((function(e,n){var i=e.className,m=e.size,u=e.scaling,p=l(e,["className","size","scaling"]);return t("div",{className:r(s({size:m,scaling:u}),i),ref:n,children:t(o,c({tinymceScriptSrc:"@lotte-innovate/ui-component-test/public/tinymce/tinymce.min.js",init:{width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),o=a(e);t.setContent(o)}})}}},p))})}));m.displayName="Editor";export{m as Editor,m as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|