This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #fff; | |
color: #d2d7df; | |
} | |
.app { | |
width: 500px; | |
margin: auto; | |
background-color: #353535; | |
padding-top: 5px; | |
padding-bottom: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
Editor, | |
EditorState, | |
RichUtils, | |
convertToRaw, | |
convertFromRaw | |
} from 'draft-js'; | |
class DraftEditorRawExample extends React.Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Editor, EditorState, RichUtils } from 'draft-js'; | |
import { stateToHTML } from 'draft-js-export-html'; | |
class DraftEditorHtmlExample extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { editorState: EditorState.createEmpty() }; | |
this.onChange = (editorState) => { | |
this.setState({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-02-16 14:04:25.642346 MyApp[6692:2776278] [] nw_host_stats_add_src recv too small, received 24, expected 28 | |
2017-02-16 14:04:25.650224 MyApp[6692:2776278] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed | |
2017-02-16 14:04:25.650878 MyApp[6692:2776278] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available" | |
2017-02-16 14:04:25.652329 MyApp[6692:2776278] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace: | |
[x86_64] libnetcore-856.30.16 | |
0 libsystem_network.dylib 0x000000010a7df666 __nw_create_backtrace_string + 123 | |
1 libnetwork.dylib 0x000000010acee006 nw_socket_add_input_handler + 3164 | |
2 libnetwork.dylib 0x000000010accb555 nw_endpoint_flow_attach_protocols + 3768 | |
3 libnetwork.dylib 0x000000010acca572 nw_endpoint_flow_setup_soc |