Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tinymce

Package Overview
Dependencies
Maintainers
3
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinymce

Web based JavaScript HTML WYSIWYG editor control.

  • 6.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
502K
decreased by-18.01%
Maintainers
3
Weekly downloads
 
Created

What is tinymce?

TinyMCE is a powerful and flexible rich text editor that can be embedded in web applications. It provides a wide range of features for text formatting, media embedding, and content management.

What are tinymce's main functionalities?

Basic Text Formatting

This initializes TinyMCE on a textarea with the ID 'mytextarea', enabling basic text formatting options like bold, italic, underline, and more.

tinymce.init({ selector: '#mytextarea' });

Image and Media Embedding

This configuration allows users to embed images and media files into the text editor. The 'image' and 'media' plugins are included, and the toolbar is updated to include buttons for these functionalities.

tinymce.init({ selector: '#mytextarea', plugins: 'image media', toolbar: 'image media' });

Custom Toolbar

This example shows how to customize the toolbar with specific buttons for undo, redo, text styles, alignment, and indentation.

tinymce.init({ selector: '#mytextarea', toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent' });

Content Style Customization

This configuration customizes the content style within the editor, setting the font family and size for the text.

tinymce.init({ selector: '#mytextarea', content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }' });

Autosave Plugin

This example demonstrates the use of the 'autosave' plugin, which automatically saves the content at specified intervals (every 30 seconds in this case).

tinymce.init({ selector: '#mytextarea', plugins: 'autosave', autosave_interval: '30s' });

Other packages similar to tinymce

Keywords

FAQs

Package last updated on 23 Nov 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc