TinyMCE4 Code Editor

Description
TinyMCE4 has no code editor plugin at default. This plugin is a code editor plugin called “tinymce4 code editor”, you can use it in your tinymce editor to toggle code quickly and edit code.
Features:
- Common language: It contains common languages in this plugin, and you can add others easily.
- Code Edit IDE: It use ACE editor to edit code, the editor has code highlight, syntax check features.
- Quick Toggle code: It contains shortcut ‘ctrl + shift + c or command + shift +c(mac)` to toggle code quicly.
- Quick Install: Just upload to the tinymce plugins’ folder and update tinymce configurations. That is it.
- Source Code: Nothing is hidden.
Installation
- Upload the files to the tinymce plugins’ folder.
- Update your tinymce configuration to add `leaui_code_editor` plugin, eg:
tinymce.init({
selector: "textarea",
plugins: [
"leaui_code_editor",
"advlist autolink link lists charmap hr anchor pagebreak",
"directionality textcolor paste fullpage textcolor"
],
toolbar1: "leaui_code_editor | styleselect formatselect fontselect fontsizeselect | bold italic underline strikethrough "
});
Note: The default css in tinyce has no ”<pre>” style, you need to add another css file which contains the “pre” style to tinymce(use content_css option), eg:
tinymce.init({
selector: "textarea",
content_css: ['tinymce/js/tinymce/plugins/leaui_code_editor/css/pre.css'],
plugins: [
"leaui_code_editor",
"advlist autolink link lists charmap hr anchor pagebreak",
"directionality textcolor paste fullpage textcolor"
],
toolbar1: "leaui_code_editor | styleselect formatselect fontselect fontsizeselect | bold italic underline strikethrough "
});
| Type | JavaScript Script |
|---|---|
| Author | leaui |
| Category | Javascript |
| Price | $11 |
| Sales | 26 |
| Rating | 0.00 from 1 rating |
| Published | Jul 11, 2014 |
| Last Update | Jul 19, 2014 |
| Compatible Browsers | IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome |
| Source Files Included | JavaScript JS, HTML, CSS, LESS |
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 1,489 views · 9 clicksOther · Week 47 · 1,489 views · 9 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 1,632 views · 10 clicksSaaS · Week 47 · 1,632 views · 10 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 9,176 views · 75 clicksSaaS · Week 47 · 9,176 views · 75 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 1,597 views · 5 clicksSaaS · Week 47 · 1,597 views · 5 clicks