Merge pull request #230 from tinymce/cdnurl

good solution to improve workflow
This commit is contained in:
Robert Collings
2015-11-25 23:56:21 -08:00
7 changed files with 14 additions and 17 deletions
+1
View File
@@ -2,6 +2,7 @@ permalink: pretty
baseurl: ""
shared_baseurl: ""
syntax_highlight_theme: "tomorrow-night"
cdnurl: "//cdn.tinymce.com/4/tinymce.min.js"
exclude:
- docs
- README.md
+2 -2
View File
@@ -3,7 +3,7 @@
Include this line of code in the `<head>` of your HTML page:
```html
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
```
### Step 2: Initialize TinyMCE as part of a web form
@@ -18,7 +18,7 @@ In this example, let's replace `<textarea id="mytextarea">` with a TinyMCE edito
<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
<script type="text/javascript">
tinymce.init({
selector: "#mytextarea"
+1 -1
View File
@@ -211,7 +211,7 @@ To help get you started, let's walk through an example of a basic TinyMCE config
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script type="text/javascript" src="{{ site.cdnurl }}"></script>
<script type="text/javascript">
tinymce.init({
selector: "#myTextarea",
+4 -4
View File
@@ -8,7 +8,7 @@ keywords: tinymce script textarea
From getting a local editor instance up and running in less than 5 minutes (via our content delivery network) to advanced installation options, working with plugins and learning about content filtering and spell checking, this is the place to start for developers new to TinyMCE.
Before we get to it, if you prefer to download TinyMCE and install it locally the [Advanced Install](../advanced-install/#sdkinstall) page in the Get Started guide has instructions.
Before we get to it, if you prefer to download TinyMCE and install it locally the [Advanced Install](../advanced-install/#sdkinstall) page in the Get Started guide has instructions.
Now, back to the CDN. In the next 4 steps and in less than 5 minutes you'll have a basic, local editor instance up and running.
@@ -17,7 +17,7 @@ Now, back to the CDN. In the next 4 steps and in less than 5 minutes you
Include this line of code in the `<head>` of your HTML page:
```html
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
```
> Tip: we give you a complete html snippet in Step 2.
@@ -35,7 +35,7 @@ In this example, let's replace `<textarea id="mytextarea">` with a TinyMCE edito
<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
<script>
tinymce.init({
selector: "#mytextarea"
@@ -54,7 +54,7 @@ In this example, let's replace `<textarea id="mytextarea">` with a TinyMCE edito
And that's all there is to it! Read on as we have two more notes for you.
> Note: if you're testing this locally, you will need to prepend `https://` to urls in the `script` tag. For example, `<script src="https://tinymce.cachefly.net/4.3/tinymce.min.js"></script>`.
> Note: if you're testing this locally, you will need to prepend `https://` to urls in the `script` tag. For example, `<script src="https:{{ site.cdnurl }}"></script>`.
## Step 3: Saving content with a form POST
+2 -2
View File
@@ -18,7 +18,7 @@ In the following example, the page is broken into two separate editable areas, e
<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
<script>
tinymce.init({
selector: ".myeditablediv",
@@ -50,7 +50,7 @@ In this next example each editable area will be loaded with an instance of TinyM
<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
<script>
tinymce.init({
selector: "#myeditable-h1",
+1 -1
View File
@@ -55,7 +55,7 @@ Enabling inline editing mode is simple. Setting the `inline` configuration prope
<!DOCTYPE html>
<html>
<head>
<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script src="{{ site.cdnurl }}"></script>
<script>
tinymce.init({
selector: "#myeditablediv",
+3 -7
View File
@@ -14,18 +14,14 @@ In this section of the Get Started guide we'll show you how easy it is to activa
Let's start with a simple code snippet you can paste into an empty `html` file (call it whatever you like, `tinymce.html` works). Save the file locally, open it with your web browser and you'll have a basic, local TinyMCE instance up and running.
> Pro tip: we included the `https://` protocol in the example below because the file is running locally and not on a server. If you were running this example on a server the script would omit the protocol, like so: `<script src="//tinymce.cachefly.net/4.3/tinymce.min.js"></script>`.
> Pro tip: we included the `https://` protocol in the example below because the file is running locally and not on a server. If you were running this example on a server the script would omit the protocol, like so: `<script src="{{ site.cdnurl }}"></script>`.
```html
<!DOCTYPE html>
<html>
<head>
<script src="https://tinymce.cachefly.net/4.3/tinymce.min.js"></script>
<script>
tinymce.init({
selector: "textarea"
});
</script>
<script src="https:{{ site.cdnurl }}"></script>
<script>tinymce.init({ selector: 'textarea' });</script>
</head>
<body>