
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
mx-dynamic-semantic
Advanced tools
Simple React component for a rich editor text and the conversion to render HTML
npm install mx-react-wysiwyg --save
import { Wysiwyg, ConvertToHTML } from "mx-react-wysiwyg";
import 'semantic-ui-css/semantic.min.css';
class App extends Component {
constructor(){
super()
this.state = {
content: null
}
}
updateValue(content){
this.setState({content})
}
render {
const { content } = this.state
return (
<div>
<Wysiwyg
onChange={this.updateValue.bind(this)}
value={this.state.value}
/>
<ConvertToHTML
html={this.state.value}
/>
</div>
);
}
}
Format | Required | What it does ? | |
---|---|---|---|
onChange | {function} | YES | Takes a function that return the content of the editor |
value | Object | NO | You can make Wysiwyg a controlled component by giving it a draft-js map value |
bold | Bool | NO | default to true pass it to false to disable bold style |
underline | Bool | NO | default to true pass it to false to disable underline style |
italic | Bool | NO | default to true pass it to false to disable italic style |
h1, h2, h3, h4, h5, h6 | Bool | NO | default to true pass it to false to disable h1, etc... style |
blockQuote | Bool | NO | default to true pass it to false to disable blockquote style |
list | Bool | NO | default to true pass it to false to disable list style |
numberedList | Bool | NO | default to true pass it to false to disable list numbered style |
code | Bool | NO | default to true pass it to false to disable code style |
Format | Required | What it does ? | |
---|---|---|---|
html | Object | YES | Object from the Wysiwyg editor |
MIT Licensed
FAQs
Wrapper to import dynamicaly Semantic UI react elements
We found that mx-dynamic-semantic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.