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.
 
 
 
 
 
 
Lee Newson aaf34d9c28 Use cdn.tiny.cloud domain for codepens, instead of the old cloud.tinymce.com domain 6 years ago
_data Removed the premium skins from the navigation, since they aren't ready to be released yet 6 years ago
_includes Use cdn.tiny.cloud domain for codepens, instead of the old cloud.tinymce.com domain 6 years ago
_layouts first version fo tinydrive demo page 7 years ago
_plugins TD-224: added google drive/dropbox/changelog to tinydrive docs 6 years ago
_scripts Merge pull request #991 from tinymce/feature/tinyurls 6 years ago
advanced Merge pull request #1054 from KurtRMueller/patch-1 6 years ago
cloud-deployment-guide Edited Migration script tag 6 years ago
configure Merge pull request #1052 from francoisfreitag/improve_examples 6 years ago
demo WEBSITE-1558 fixes tiny-drive demo (#1040) 6 years ago
docker DOC-237 linkchecker has been added (#946) 7 years ago
enterprise Updated premium skins and icon packs page 6 years ago
general-configuration-guide * Fixed issues with index cards not displaying. 6 years ago
images Merge branch 'feature/TCLOUD-2861' into feature/TCLOUD-2861-2 6 years ago
integrations Fixed the bootstrap intergration docs using an incorrect selector 6 years ago
plugins Merge pull request #1058 from tinymce/feature/TINY-3535 6 years ago
release-notes TINY-3732: Fixes from Andy's review 6 years ago
tinydrive Update configuration.md 6 years ago
ui-components Merge pull request #1059 from tinymce/feature/GH-1057 6 years ago
.api-version TINY-3732: Added 5.0.6 release notes 6 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
Gemfile - Changed URL, Origin properties from https://www.tinymce.com to correct URLs. 7 years ago
Gemfile.lock - Changed URL, Origin properties from https://www.tinymce.com to correct URLs. 7 years ago
Makefile DX-738 empty commit 7 years ago
README.md Merge pull request #991 from tinymce/feature/tinyurls 6 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. 7 years ago
_config.yml Use cdn.tiny.cloud domain for codepens, instead of the old cloud.tinymce.com domain 6 years ago
changelog.md TINY-3664: Added 5.0.6 changelog 6 years ago
index.md Update index.md 7 years ago
migration-from-4x.md Review Edits 6 years ago
mobile.md Merge branch 'develop' into DOC-286 6 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 Review Edits 6 years ago
robots.txt Added robots.txt to stop automatic robots.txt creation. 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-237 linkchecker has been added (#946) 7 years ago

README.md

TinyMCE documentation

wercker status

This project serves as the documentation for TinyMCE, as you see on 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.

Working on TinyMCE documentation

Prerequisites

You need the following installed on your computer:

  1. Ruby version 2 or later.

  2. Bundler. This can be installed via:

gem install bundler
  1. g++. On Fedora, for instance, run:
sudo dnf install gcc-c++
  1. Docker

  2. make - From the root folder, run _scripts/init.sh and _scripts/serve.sh as instructed below .

Notes for Windows users

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

  1. Install Ruby+Devkit 2.4.5-1 (x64) and no later.

  2. Run the following commands from a terminal to install Bundler:

gem install bundler
bundle install
  1. From the root folder, run _scripts/init.sh and _scripts/serve.sh as instructed below .

First time set up

Once you have the prerequisites

Then retrieve and init the project:

git clone git@github.com:tinymce/tinymce-docs.git
cd tinymce-docs
./_scripts/init.sh

Run development version

./_scripts/serve.sh

Navigate to http://127.0.0.1:4000/

Run with moxiedoc

git clone git@github.com:tinymce/tinymce-docs.git
cd tinymce-docs
./_scripts/init.sh
./_scripts/api-reference.sh 
./_scripts/serve.sh

Run with moxiedoc, with a local version of tinymce checked out

git clone git@github.com:tinymce/tinymce-docs.git
cd tinymce-docs
./_scripts/init.sh
./_scripts/api-reference-local.sh <tinymce src folder path>
./_scripts/serve.sh

Codepens

Codepens can be created using the "codepen.html" include, e.g:

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

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

Overriding the tinymce URL in codepens

All codepens usually get their tinymce.min.js URL from the codepen_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 codepens in a different channel.

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

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

    • This will override the codepen_url setting in config.yml.
    • This file is not intended to be checked in.
    • This option changes the URL for all codepens.
  2. Set the tinymce_url_override setting when including codepen.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 codepen.
    • Don't use this in more than one codepen on a page.
    • Don't use this long-term - when the feature is fully rolled-out, use the standard channel.
    • See codepen.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.

Contributing to TinyMCE

If you would like to contribute to the TinyMCE project please read the Contributor's Guide

See the TinyMCE Docs Wiki for additional information, including information on troubleshooting the "first time set up" process.

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.

Working with Codepens

While working with Codepens, please be aware that adding comments in the single line format (//) to the *.js files will break the related demonstration due to parsing issues. To create comments, use this format:

<!--
    This is a comment.
-->

Or

/*
    This is a comment.
*/