You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Tyler Kelly 294c695ce1
DOC-655: switch from master to main branch (#1765)
5 years ago
.github Fix codeowner, someone changed the team name (#1715) 5 years ago
_data TINY-6510: Added missing security fixes section to 5.5 release notes (#1736) 5 years ago
_includes DOC-655: switch from master to main branch (#1765) 5 years ago
_layouts DOC-577: remove unused images (#1575) 5 years ago
_new_content_templates TinyMCE 5.5 Enterprise Release Documentation (#1717) 5 years ago
_plugins Add coloring for deprecated in changelogs (#1678) 5 years ago
_scripts TinyMCE 5.5 Enterprise Release Documentation (#1717) 5 years ago
advanced DOC-717: Improved the postAcceptor.php script to actually work for cross origin requests (#1753) 5 years ago
cloud-deployment-guide Accessibility changes to non-plugin pages (#1705) 5 years ago
configure DOC-164: Improve the documentation style guide (#1741) 5 years ago
demo Accessibility changes to non-plugin pages (#1705) 5 years ago
docker DOC-237 linkchecker has been added (#946) 7 years ago
enterprise DOC-639: Adding FAQs to powerpaste docs (#1752) 5 years ago
general-configuration-guide Accessibility changes to non-plugin pages (#1705) 5 years ago
images TinyMCE 5.5 Enterprise Release Documentation (#1717) 5 years ago
integrations Fix site_name in metadata (#1738) 5 years ago
plugins DOC-639: Adding FAQs to powerpaste docs (#1752) 5 years ago
release-notes TINY-6510: Added missing security fixes section to 5.5 release notes (#1736) 5 years ago
tinydrive Accessibility changes to non-plugin pages (#1705) 5 years ago
ui-components DOC-697: Fixed value type allowed by columns on splitButton (#1745) 5 years ago
.api-version TinyMCE 5.5 Enterprise Release Documentation (#1717) 5 years ago
.dockerignore moved build system to wercker 10 years ago
.gitignore Add _config-local-override.yml file that's not checked in. 6 years ago
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 5 years ago
CONTRIBUTING.md DOC-625: Updated demos to use the term 'live demo' not codepen 5 years ago
Gemfile Security fix for CVE-2020-14001 (#1632) 5 years ago
Gemfile.lock Security fix for CVE-2020-14001 (#1632) 5 years ago
LICENSE.txt Add license file to repository 5 years ago
Makefile DX-738 empty commit 7 years ago
README.md DOC-655: switch from master to main branch (#1765) 5 years ago
_config-local-override.sample.yml Add _config-local-override.yml file that's not checked in. 6 years ago
_config-local.sample.yml - Changed URL, Origin properties from https://www.tinymce.com to correct URLs. 6 years ago
_config.yml TinyMCE 5.5 Enterprise Release Documentation (#1717) 5 years ago
changelog.md DOC-676: add 5.5.1 changelog (#1690) 5 years ago
index.md added API reference to homepage 5 years ago
migration-from-4x.md Accessibility changes to non-plugin pages (#1705) 5 years ago
migration-from-froala.md DOC-645: Restructure menu item and toolbar button refs (#1675) 5 years ago
mobile.md Accessibility changes to non-plugin pages (#1705) 5 years ago
nixpin.nix DOC-109: Run code examples in the docs website, with button to post to codepen 7 years ago
pages.json fixe api reference search and layout 10 years ago
quick-start.md DOC-625: Updated demos to use the term 'live demo' not codepen 5 years ago
robots.txt Adjusted sync build script path. 6 years ago
search-db.json fixe api reference search and layout 10 years ago
shell.nix DOC-109: Run code examples in the docs website, with button to post to codepen 7 years ago
tash Release Notes 7 years ago
wercker.yml DOC-655: switch from master to main branch (#1765) 5 years ago

README.md

TinyMCE documentation

wercker status

This project maintains the documentation for TinyMCE at https://www.tiny.cloud/docs. If you have any modifications you wish to contribute, fork this project, make the changes and submit a pull request. You will need to sign the contributors license agreement, which will be emailed to you upon creating the pull request.

This project is built using Jekyll.

Contributing to the TinyMCE Documentation

If you would like to contribute to the TinyMCE project please read the TinyMCE Documentation Contributor's Guide at either:

Working on TinyMCE documentation

Compiling or building the documentation

The following procedure assists with building (or compiling) the documentation locally. Tiny recommends testing and reviewing changes locally prior to submitting a pull request.

Installing Prerequisites

Linux users

You need the following programs installed on your computer:

  • Ruby version 2 or later. To verify the installed version, run:
    ruby --version
    
  1. Install git, g++, make, and the zlib development files. For example:

    • On Fedora, run:

      sudo dnf install git-all gcc-c++ make zlib-devel
      
    • On Ubuntu, Debian or their derivatives, run:

      sudo apt install git gcc cpp make zlib1g-dev
      
  2. Install Ruby Nokogiri: https://nokogiri.org/

    sudo gem install nokogiri
    
  3. Install Ruby Bundler. Install using:

    sudo gem install bundler
    
  4. (optional) Docker

Windows users

If you are a Windows user, follow these steps to work on TinyMCE documentation:

  1. Install git for Windows.

  2. Install Ruby+Devkit.

  3. Run the following command on a command prompt to install Ruby Bundler:

    gem install bundler
    
Mac OS users
  1. Ruby version 2 or later is required. Verify the pre-installed version, using:

    ruby --version
    
  2. Install Ruby Bundler, using:

    gem install bundler
    

First time set up

Once you have installed any missing prerequisites, in a terminal or on a command prompt:

  1. Clone the git repository:

    git clone git@github.com:tinymce/tinymce-docs.git
    
  2. Change directory into the cloned git repository:

    cd tinymce-docs
    
  3. Run the initialization script to install dependencies and create the required local files in the git repository:

    ./_scripts/init.sh
    

Run the development version of the documentation

To create a development version of the documentation, run:

./_scripts/serve.sh

Allow the serve.sh script to run in the background while you are working on the TinyMCE documentation.

To view the documentation; in a web browser, navigate to http://localhost:4000/.

Note: The development version of the documentation will update automatically when you save changes locally.

TinyMCE API documentation

The TinyMCE API documentation is maintained within the TinyMCE project repository and compiled for the documentation site using MoxieDoc.

Prerequisites
Installing MoxieDoc

To install MoxieDoc, run:

npm install -g git://github.com/tinymce/moxiedoc.git#feature/tinymcenext
Run the development version of the documentation for the current TinyMCE version
  1. Download the TinyMCE version in the .api-version file in this project's root directory and extract the API documentation using:
    ./_scripts/api-reference.sh
  1. Start the development server using:
    ./_scripts/serve.sh
Run the development version of the documentation for a local TinyMCE repository
  1. Extract the API documentation from a local copy of the TinyMCE repository using:
    ./_scripts/api-reference-local.sh <path/to/the/tinymce/repo>
  1. Start the development server using:
    ./_scripts/serve.sh
  1. To include updates made to the TinyMCE API documentation in the TinyMCE repository, run the api-reference-local script:
    ./_scripts/api-reference-local.sh <path/to/the/tinymce/repo>

Note: The development server does not need to be stopped prior to running the api-reference-local script.

Live Demos

Live demos can be added to content using the "live-demo.html" include, such as:

{% include live-demo.html id="basic-example" %}

There are several options for this include file - please see live-demo.html for details.

The source for each live demo is store in the _includes/live-demos/ directory.

Overriding the tinymce URL in live demos

All live demos usually get their tinymce.min.js URL from the tinymce_live_demo_url setting in the _config.yml file. However, there are some instances where you wish to override this, e.g.

  • You want to push/deploy a branch for a new feature that's only on the 'dev' channel.
  • You want to run the site locally, but test out the live demos in a different channel.

To help with this, there are two mechanisms for overriding the tinymce.min.js URL.

  1. Set tinymce_live_demo_url in _config-local-override.yml.

    • This will override the tinymce_live_demo_url setting in config.yml.
    • This file is not intended to be checked in.
    • This option changes the URL for all live demos.
  2. Set the script_url_override setting when including live-demo.html.

    • This is useful if you want to deploy the develop branch for a feature only in the 'dev' channel.
    • This only overrides the URL for one live demo.
    • Don't use this in more than one live demo on a page.
    • Don't use this long-term - when the feature is fully rolled-out, use the standard channel.
    • See live-demo.html for details.

Note: Jekyll is pretty bad at automatically reloading code when you're playing with include files. Sometimes you need to restart the server.

Why is HTML minification disabled?

It's very slow and the minifier is using regex to parse HTML. We may add a different minifier in the future.