Browse Source

Add new section for Quick Start

pull/723/head
Shikha Nansi 7 years ago
parent
commit
760cf157d9
  1. 4
      _data/nav.yml
  2. 2
      advanced/index.md
  3. 2
      configure/index.md
  4. 2
      demo/index.md
  5. 2
      enterprise/index.md
  6. 2
      get-started-cloud/index.md
  7. 2
      get-started/index.md
  8. 2
      integrations/index.md
  9. 2
      plugins/index.md
  10. 10
      quick-start/index.md
  11. 64
      quick-start/quick-start.md
  12. 2
      themes/index.md

4
_data/nav.yml

@ -1,3 +1,7 @@
- url: "quick-start"
pages:
- url: "quick-start"
- url: "get-started-cloud"
pages:
- url: "editor-and-features"

2
advanced/index.md

@ -4,5 +4,5 @@ title: Explore Advanced Topics
description: Information and guides for developers wanting to build advanced capabilities into TinyMCE.
type: folder
---
{% assign links = site.data.nav[8].pages %}
{% assign links = site.data.nav[9].pages %}
{% include index.html links=links %}

2
configure/index.md

@ -6,5 +6,5 @@ description_short: The most customizable rich text editor.
description: TinyMCE is not only the most advanced rich text editor it's also the most customizable.
type: folder
---
{% assign links = site.data.nav[4].pages %}
{% assign links = site.data.nav[5].pages %}
{% include index.html links=links %}

2
demo/index.md

@ -13,5 +13,5 @@ redirect_from:
- /try-tinymce/
---
{% assign links = site.data.nav[2].pages %}
{% assign links = site.data.nav[3].pages %}
{% include index.html links=links %}

2
enterprise/index.md

@ -5,5 +5,5 @@ description: Premium features from the makers of TinyMCE.
type: folder
---
{% assign links = site.data.nav[7].pages %}
{% assign links = site.data.nav[8].pages %}
{% include index.html links=links %}

2
get-started-cloud/index.md

@ -5,5 +5,5 @@ description: If you are new to TinyMCE Cloud, this is the place to start.
type: folder
---
{% assign links = site.data.nav[0].pages %}
{% assign links = site.data.nav[1].pages %}
{% include index.html links=links %}

2
get-started/index.md

@ -5,5 +5,5 @@ description: If you are new to self-hosting TinyMCE, this is the place to start.
type: folder
---
{% assign links = site.data.nav[1].pages %}
{% assign links = site.data.nav[2].pages %}
{% include index.html links=links %}

2
integrations/index.md

@ -4,5 +4,5 @@ title: Integrate With Other Projects
description: Faster development with integrations of TinyMCE into your favorite framework or CMS.
type: folder
---
{% assign links = site.data.nav[9].pages %}
{% assign links = site.data.nav[10].pages %}
{% include index.html links=links %}

2
plugins/index.md

@ -7,5 +7,5 @@ description: TinyMCE is an incredibly powerful, flexible and customizable rich t
type: folder
---
{% assign links = site.data.nav[5].pages %}
{% assign links = site.data.nav[6].pages %}
{% include index.html links=links %}

10
quick-start/index.md

@ -0,0 +1,10 @@
---
layout: default
title: Quick Start to Tiny Cloud
description: If you are new to Tiny Cloud, this is the place to start.
type: folder
---
{% assign links = site.data.nav[0].pages %}
{% include index.html links=links %}

64
quick-start/quick-start.md

@ -0,0 +1,64 @@
---
layout: default
title: Your First Steps
description_short: Setup TinyMCE in less than 5 minutes (on your desktop).
description: Get a local instance of TinyMCE up and running in less than 5 minutes.
keywords: tinymce script textarea
---
From getting a local editor instance up and running in less than 5 minutes (via our TinyMCE Cloud) 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.
Now, back to the TinyMCE Cloud. In the next 4 steps – and in less than 5 minutes – you'll have a basic, local editor instance up and running.
## Step 1: Include the TinyMCE script
Include this line of code in the `<head>` of your HTML page:
```html
<script src='{{ site.cdnurl }}'></script>
```
> Tip: we give you a complete html snippet in Step 2.
## Step 2: Initialize TinyMCE as part of a web form
With the script included, initialize TinyMCE on any element (or elements) in your web page.
Since TinyMCE lets you identify replaceable elements via a CSS selector, all you need do is pass an object that contains a `selector` to `tinymce.init()`.
In this example, let's replace `<textarea id='mytextarea'>` with a TinyMCE editor instance by passing the selector `'#mytextarea'` to `tinymce.init()`.
```html
<!DOCTYPE html>
<html>
<head>
<script src='{{ site.cdnurl }}'></script>
<script>
tinymce.init({
selector: '#mytextarea'
});
</script>
</head>
<body>
<h1>TinyMCE Quick Start Guide</h1>
<form method="post">
<textarea id="mytextarea">Hello, World!</textarea>
</form>
</body>
</html>
```
> 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
When the `<form>` is submitted the TinyMCE editor mimics the behavior of a normal HTML `<textarea>` during the `post`. In your form handler, you can process the content submitted as if it had come from a regular `<textarea>`.
And that's all there is to it! You may use TinyMCE Cloud without an API key. However, to use our premium plugins or avoid the in-editor developer warning, you will need to signup for an API key and update the script tag used to load the editor code into your application. Please visit the [Cloud Get Started]({{ site.baseurl }}/get-started-cloud/) to learn more about the plugins and other features of TinyMCE.
"first-steps.md" 64L, 2457C

2
themes/index.md

@ -7,5 +7,5 @@ description: TinyMCE is an incredibly powerful, flexible and customizable rich t
type: folder
---
{% assign links = site.data.nav[6].pages %}
{% assign links = site.data.nav[7].pages %}
{% include index.html links=links %}
Loading…
Cancel
Save