* Create alternate editor * Install linkstate (?) Not sure how it disappear in the first place * Run yarn install * Modulize ArticleForm component * Refactor * Isolating css WIP * Implement simplified frontmatter-less editor * Modulize individual form element * Ajust props names * Transform json params to snakecase * Remove codes * Update /new, almost there for release * Fix editor resize issues * Change defaultvalue to value in article form tag element * Modify html buttons in article form
20 lines
432 B
JavaScript
20 lines
432 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const BodyPreview = ({ previewHTML }) => (
|
|
<div className="container" style={{marginTop: "10px",minHeight:"508px", overflow:"hidden"}}>
|
|
<div className="body" dangerouslySetInnerHTML={{__html: previewHTML}} style={{width: "90%"}}>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
BodyPreview.propTypes = {
|
|
previewHTML: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default BodyPreview;
|
|
|
|
|
|
|
|
|
|
|