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 e690c4a0b5 Added additional draft content to the 5.1 release notes 6 years ago
_data 5.1 release notes initial commit 6 years ago
_includes Added additional draft content to the 5.1 release notes 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 Edits to create-an-icon-pack, add and update links from related content, added page listing icon ids. 6 years ago
advanced Fix link in editor icon page 6 years ago
cloud-deployment-guide DOC-327: Changed links back to using "drive" to reflect changes in DOC-319 6 years ago
configure Removing references to nowrap 6 years ago
demo Merge pull request #1216 from tinymce/feature/DOC-314 6 years ago
docker DOC-237 linkchecker has been added (#946) 7 years ago
enterprise Merge pull request #1245 from tinymce/feature/TINY-3267 6 years ago
general-configuration-guide Changes to Supported version pages based on further feedback 6 years ago
images Added additional draft content to the 5.1 release notes 6 years ago
integrations Updating the Vue integration guide 6 years ago
plugins Changes to Supported version pages based on further feedback 6 years ago
release-notes 5.1 release notes initial commit 6 years ago
tinydrive Some small capitalization suggestions 6 years ago
ui-components Edits to create-an-icon-pack, add and update links from related content, added page listing icon ids. 6 years ago
.api-version Update api-version to 5.0.14 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 Bump nokogiri from 1.8.4 to 1.10.4 6 years ago
Gemfile.lock Bump nokogiri from 1.8.4 to 1.10.4 6 years ago
Makefile DX-738 empty commit 7 years ago
README.md Removing references to the TinyMCE 'wiki' 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. 6 years ago
_config.yml missing comma 6 years ago
changelog.md TINY-4171: Added 5.0.16 changelog 6 years ago
index.md Update index.md 7 years ago
migration-from-4x.md Additional updates based on further feedback mig from 4 guide 6 years ago
migration-from-froala.md minor edits to mig. from froala guide 6 years ago
mobile.md Significant revisions to supported configuration pages. 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 adding missing attribute to quickstart example 6 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 Added additional configuration for clarity. 6 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 script_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

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.
*/