Socket
Socket
Sign inDemoInstall

@tinacms/core

Package Overview
Dependencies
0
Maintainers
13
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tinacms/core

The `@tinacms/core` package provides the core objects for building amazing content management systems.


Version published
Maintainers
13
Created

Changelog

Source

0.32.0 (2020-10-20)

Bug Fixes

  • @tinacms/core: cms.media.open accepts the allowDelete prop (9364732)
  • @tinacms/fields: image field allows media to be deleted from media manager (7dfbb5e)
  • gatsby-tinacms-json: JsonCreator commits files after writing (a252c13)
  • gatsby-tinacms-remark: RemarkCreator commits files after writing (2b8780c)
  • react-tinacms-github: dispatch event on delete failurecloses #1493 (12d92dc)
  • react-tinacms-inline: empty inline img to click/drag (c879441)
  • react-tinacms-inline: field focus is not lost when editing settings (8a078b4)
  • react-tinacms-inline: inline image field allows media to be deleted from media manager (352284f)
  • react-tinacms-inline: some fields were mis-handling focus (5d7318c), closes #1516
  • react-tinacms-inline: uploadDir passes formValues (99de78a)
  • tinacms: media manager upload button is busy while uploading (3ab978c)

Features

  • @tinacms/react-core: useCMSEvent makes subscribing to events easier (2a276bf)
  • react-tinacms-editor: image directory prop --> uploadDir func (67fc8d9)
  • react-tinacms-editor: markdown & html fields accept image props (06d92e1)
  • react-tinacms-editor: media mgr opens from uploadDir (7e1b133)
  • react-tinacms-editor: parse accepts media object (f6cf123)
  • react-tinacms-editor: wysiwyg menu opens media mgr (026e633)
  • react-tinacms-inline: block components are given their name (8d42e9a), closes #1536

Reverts

  • Revert "chore(react-tinacms-editor): mediaDir not optional" (af20d84)

Readme

Source

@tinacms/core

The @tinacms/core package provides the core objects for building amazing content management systems.

Installation

Install the package

npm install --save @tinacms/core

or

yarn add @tinacms/core

F.A.Q.

Below are the answer to a couple common questions.

If you have any other questions, go to the TinaCMS Community page to join our Slack or open an issue on Github! Every question you ask helps us make working with TinaCMS even better :)

What does the CMS do?

The responsibility of the CMS keeps track of two broad types of objects:

  • Plugins, which extend or change the behaviour of the CMS.
  • APIs, which allow the CMS to integrate with third party services.

What? That doesn't seem like a CMS

The name CMS is a bit misleading. This object knows nothing of the user interface or the data storage layer. The purpose of a CMS instance is to provide a common connection point for the various aspects of a content management system. The CMS object effectively a vehicle for dependency injection.

Examples

Creating a CMS

import { CMS } from '@tinacms/core'

let cms = new CMS()

Registering APIs

import github from 'my-github-client'

cms.registerApi('github', github)

cms.api.github

Adding Plugins

import github from 'my-github-client'

cms.plugins.add({
  __type: 'some-plugin',
  some: 'value',
})

cms.plugins.all('some-plugin') // [{ __type: 'some-plugin', some: 'value' }]

Keywords

FAQs

Last updated on 20 Oct 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc