Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: TinyMCE | ||
menu: docs.plugins.tinymce | ||
libs: tinymce | ||
description: The WYSIWYG editor that is flexible, customizable, and designed with the user in mind. TinyMCE can handle any challenge, from the most simple implementation through to the most complex use case. | ||
--- | ||
|
||
[TinyMCE](https://www.tiny.cloud/docs/) documentation. | ||
|
||
## Default text editor | ||
|
||
Initialize TinyMCE 6 on any element (or elements) on the web page by passing an object containing a selector value to `tinymce.init()`. The selector value can be any valid CSS selector. | ||
|
||
{% capture code %} | ||
{% include ui/tinymce.html id="default" %} | ||
{% endcapture %} | ||
{% include example.html code=code %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% assign id = include.id | default: 'mytextarea' %} | ||
|
||
<form method="post"> | ||
<textarea id="tinymce-{{ id }}">Hello, <b>Tabler</b>!</textarea> | ||
</form> | ||
|
||
{% capture_global scripts %} | ||
<script> | ||
// @formatter:off | ||
document.addEventListener("DOMContentLoaded", function () { | ||
tinyMCE.init({ | ||
selector: '#tinymce-{{ id }}', | ||
height: 300, | ||
menubar: false, | ||
statusbar: false, | ||
plugins: [ | ||
'advlist autolink lists link image charmap print preview anchor', | ||
'searchreplace visualblocks code fullscreen', | ||
'insertdatetime media table paste code help wordcount' | ||
], | ||
toolbar: 'undo redo | formatselect | ' + | ||
'bold italic backcolor | alignleft aligncenter ' + | ||
'alignright alignjustify | bullist numlist outdent indent | ' + | ||
'removeformat', | ||
content_style: 'body { font-family: -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }' | ||
}); | ||
}) | ||
// @formatter:on | ||
</script> | ||
{% endcapture_global %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: TinyMCE | ||
page-header: TinyMCE | ||
menu: base.tinymce | ||
libs: tinymce | ||
--- | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
||
<div class="mb-3"> | ||
<label class="form-label">Your name</label> | ||
<input type="text" class="form-control" placeholder="Name"> | ||
</div> | ||
|
||
<div class="mb-3"> | ||
<label class="form-label">Description</label> | ||
{% include ui/tinymce.html %} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.tox-tinymce { | ||
border: 1px solid var(--#{$prefix}border-color) !important; | ||
border-radius: $border-radius !important; | ||
font-family: var(--tblr-font-sans-serif) !important; | ||
} | ||
|
||
.tox-toolbar__group { | ||
padding: 0 .5rem 0; | ||
} | ||
|
||
.tox:not(.tox-tinymce-inline) { | ||
.tox-editor-header { | ||
border-bottom: 1px solid var(--#{$prefix}border-color) !important; | ||
box-shadow: none !important; | ||
padding: 0 !important; | ||
} | ||
} | ||
|
||
.tox-tbtn { | ||
margin: 0 !important; | ||
} | ||
|
||
.tox-statusbar { | ||
border-top: 1px solid var(--#{$prefix}border-color) !important; | ||
} |
58d0dfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
tabler – ./
tabler-tabler-ui.vercel.app
tabler-ui.vercel.app
dev.tabler.io
tabler-git-main-tabler-ui.vercel.app
preview.tabler.io
demo.tabler.io