![]() Edit this section on GitHubĬontains the full slug of the default language if the app Translatable Slugs is installed The sample requests are performed using a preview API token of a test space with demo content. The requests in the right sidebar are designed to work as is. To switch between those versions you can append the query parameter version=draft/published and using the appropriate token to perform a draft or published version call. The preview token is able to also load the published content. To access the draft version of your content you can use the preview token, and for receiving published content you can use the public token. To make the API as explorable as possible, accounts have draft versions and published version of API tokens. ![]() JSON is returned by all API responses, including errors, although our API libraries convert responses to appropriate language-specific objects. We support cross-origin resource sharing, allowing you to interact securely with our API from a client-side web application (though you should never expose your secret API key in any public website's client-side code, tokens found on the dashboard however are read only and therefore fine to use in a client-side code). We use built-in HTTP features, like HTTP query parameters and HTTP verbs, which are understood by off-the-shelf HTTP clients. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. Resources and EcosystemĬheck out this curated list of articles and open-sourced projects/utilities: Awesome Draft-JS.The Storyblok Content Delivery API is organized around REST. There are known issues with mobile browsers, especially on Android ( docs). IME inputs have known issues in these browsers, especially Korean ( docs). May need a shim or a polyfill for some syntax used in Draft.js ( docs). ![]() Then, open the example HTML files in your browser. To run the examples in the /examples directory, first build Draft.js locally as described above. Since the release of React 16.8, you can use Hooks as a way to work with EditorState without using a class. Import React from 'react' import ReactDOM from 'react-dom' import ReactDOM. Refer to the docs for more information and information on how to migrate. ![]() Since, the plans have changed- v0.11.0 still supports the old API and v0.12.0 will remove it. Previously, the old API was set to be removed in v0.11.0. Learn how to use Draft.js in your own project.ĭraft.js is used in production on Facebook, including status andīefore getting started, please be aware that we recently changed the API of
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |