wix / ricos Goto Github PK
View Code? Open in Web Editor NEWA super charged rich content editor with an extensible plugin system.
Home Page: https://ricos.js.org
License: MIT License
A super charged rich content editor with an extensible plugin system.
Home Page: https://ricos.js.org
License: MIT License
I see warning:
Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
Probably need to track mounted status and check that inside the async call.
IMHO there should be no _-node_modules-...
_-node_modules-pro-gallery-renderer-dist-src-components-styles-global__pro-circle-preloader__2qPIF {
-webkit-animation: _-node_modules-pro-gallery-renderer-dist-src-components-styles-global__semi-rotate__1B3Bd 1s linear infinite;
animation: _-node_modules-pro-gallery-renderer-dist-src-components-styles-global__semi-rotate__1B3Bd 1s linear infinite;
height: 30px;
left: 50%;
margin-left: -15px;
margin-top: -15px;
overflow: hidden;
position: relative;
-webkit-transform-origin: 100% 50%;
transform-origin: 100% 50%;
width: 15px; }
See example on sep6-viewer-ssr branch
there are a text line and hashtag with decorator
the gallery below doesn't render due to a client-side exception: "Uncaught Error: Unable to find element with ID 29."
if we remove the 'onClick' on the hashtag, everything works
Crash: no props.settings.htmlIframeSrc
(html plugin viewer part relies on editor config)
cc @audriusk-wix (Blog Blocker)
Link Panel: when a link is set to an image, it is displayed to all other images in URL input. The component data is correct.
If class in .scss
is empty (https://github.com/wix-incubator/rich-content/blob/develop/packages/common/statics/styles/tooltip.scss), after build its removed from bundled css and classnames maps. Because of that you can't customize component's classNames via themes, like https://github.com/wix-incubator/rich-content/blob/develop/packages/common/src/Components/TooltipHost.jsx.
https://github.com/wix-incubator/rich-content/blob/develop/packages/common/src/Components/TooltipHost.jsx#L9 at bundled .js styles
is empty, and mergeStyles
do nothings, since it operates with keys from styles
, and classNames from theme
not merged into result object.
"blocks": [{
"key": "foo",
"text": " (\\n)\nnewline before and after (\\n) \n",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "hu3e",
"text": "newline after (\\n) followed by empty block\n ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "hu5g",
"text": "",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "97j3p",
"text": "newline after (\\n) \n ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "159g0",
"text": "No spaces",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "endmd",
"text": " 4 spaces",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "9k2u9",
"text": " 8 spaces",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
}
],
"entityMap": {
}
}
body {
margin: 0;
padding: 0; }
The feature we want to achieve is that when a user focuses on an item the toolbars are never hidden off screen.
We thought of a couple of ways to handle this:
Main challenge is knowing when the toolbar is off screen, as RCE doesn't know the full context in which its used, like being inside a overflow: scroll
etc.
If I want to pass some data to button's componentData
property I should use:
InlineButtons
: componentData
InlineButtons
: data
Please, make it the same
Now i can use only what base implementation provides :(
Currently, if a symbol is being typed after soft new line [Shift + Enter], it appended to a previous line before the soft new line (reproduced on latest Firefox)
Please advice:
seems the only way to achieve this is to contribute to main project.
i cannot make poc/tests in my own project
cause: search by url (which is not constant)
Seems like that should instead be an absolute path. GitHub cannot resolve the tilde.
There doesn't seem to be a way to customise the placeholder used in the link popup.
@autobind
for the handlers passed as propsAdd possibility to pass isActive property for plugin toolbar buttons of type BUTTONS.TOGGLE
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.