This file contains hidden or 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
var index = require("./index.js"), | |
DomHandler = index.DomHandler, | |
DomUtils = index.DomUtils; | |
//TODO: make this a streamable handler | |
function FeedHandler(callback, options){ | |
this.init(callback, options); | |
} | |
require("util").inherits(FeedHandler, DomHandler); |
This file contains hidden or 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 { ContentState, genKey, Entity, CharacterMetadata, ContentBlock, convertFromHTML } from 'draft-js' | |
import { List, OrderedSet, Repeat, fromJS } from 'Immutable' | |
import { compose, toArray, extend } from 'underscore' | |
/* | |
* Helpers | |
*/ | |
// Prepares img meta data object based on img attributes | |
const getBlockSpecForElement = (imgElement) => ({ |
This file contains hidden or 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 routerWindow from './routerWindow'; | |
export const App: React.FC = () => { | |
return ( | |
<Router window={routerWindow}> | |
{/* Your routes here */} | |
</Router> | |
); | |
}; |