Comments (4)
In order to troubleshoot this we would need to know more about your environment. What framework and build tools are you using (including versions)? What was the last release that you used successfully? Even better would be if you could post a reproduction (e.g. on stackblitz) that can be inspected directly.
from lexical.
I suspect this is an error in the way your project is configured because that's not the code that is shipped with Lexical 0.14.3
LexicalRichTextPlugin.dev.mjs
function RichTextPlugin({
contentEditable,
placeholder,
ErrorBoundary
}) {
const [editor] = useLexicalComposerContext();
const decorators = useDecorators(editor, ErrorBoundary);
useRichTextSetup(editor);
return /*#__PURE__*/React.createElement(React.Fragment, null, contentEditable, /*#__PURE__*/React.createElement(Placeholder, {
content: placeholder
}), decorators);
}
LexicalRichTextPlugin.dev.js
function RichTextPlugin({
contentEditable,
placeholder,
ErrorBoundary
}) {
const [editor] = LexicalComposerContext.useLexicalComposerContext();
const decorators = useDecorators(editor, ErrorBoundary);
useRichTextSetup(editor);
return /*#__PURE__*/React.createElement(React.Fragment, null, contentEditable, /*#__PURE__*/React.createElement(Placeholder, {
content: placeholder
}), decorators);
}
LexicalRichTextPlugin.prod.js
(after formatting)
exports.RichTextPlugin = function ({
contentEditable: a,
placeholder: d,
ErrorBoundary: c,
}) {
let [e] = b.useLexicalComposerContext();
c = y(e, c);
B(e);
return l.createElement(
l.Fragment,
null,
a,
l.createElement(C, { content: d }),
c,
);
};
LexicalRichTextPlugin.prod.mjs
(after formatting)
function x({ contentEditable: t, placeholder: o, ErrorBoundary: a }) {
const [E] = e(),
x = (function (e, t) {
const [o, a] = c(() => e.getDecorators());
return (
p(
() =>
e.registerDecoratorListener((e) => {
s(() => {
a(e);
});
}),
[e],
),
n(() => {
a(e.getDecorators());
}, [e]),
i(() => {
const n = [],
c = Object.keys(o);
for (let i = 0; i < c.length; i++) {
const a = c[i],
m = r.createElement(
t,
{ onError: (t) => e._onError(t) },
r.createElement(l, { fallback: null }, o[a]),
),
s = e.getElementByKey(a);
null !== s && n.push(u(m, s, a));
}
return n;
}, [t, o, e])
);
})(E, a);
return (
(function (e) {
p(() => m(d(e), f(e)), [e]);
})(E),
r.createElement(r.Fragment, null, t, r.createElement(g, { content: o }), x)
);
}
// …
export { x as RichTextPlugin };
from lexical.
I have used vite to configure the project.
Below are the version i'm using:
vite version: ^2.8.0
@vitejs/plugin-react: ^1.0.7
from lexical.
I don't think that's enough info to reproduce this unfortunately
from lexical.
Related Issues (20)
- Feature:
- Bug: There may be exceptions when merging tables
- Bug: Delete a row in the table Delete
- Feature: Easily customize the internal node like ParagraphNode HOT 1
- Improve & document NPM package addition process HOT 4
- Bug: convertToMarkdownString removes nested list
- Bug: `contentEditable` does not properly announce deletions when using `a11y` screen readers on Safari
- Bug: Korean consonant disappears when succeeded by a number or special character in Chrome HOT 2
- Bug: Additional paragraph inserted when pressing "Enter" within AutoLinkNode
- Bug: Not able to use ColorPicker inside FloatingToolbar
- Feature: File upload HOT 1
- Bug: Links don't follow Link style if text formatting is applied
- Bug: Missing semicolon error when I run npm start on second time of the cloned repo HOT 2
- Bug: Table is not deleted correctly when selected by shift + arrowup HOT 2
- Slack Dropzone Plugin HOT 2
- Docs: Replace lingering references of GridSelection with TableSelection
- Bug: @lexical/react 0.14.4 brings in @lexical/devtools-core dependency without declaring it HOT 6
- Bug: Collapsible container is not properly deserialized HOT 6
- Docs: Add FAQs about hot module reloading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexical.