TinyMCE4 Code Editor icon

TinyMCE4 Code Editor

Hot or Not
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:

  1. Common language: It contains common languages in this plugin, and you can add others easily.
  2. Code Edit IDE: It use ACE editor to edit code, the editor has code highlight, syntax check features.
  3. Quick Toggle code: It contains shortcut ‘ctrl + shift + c or command + shift +c(mac)` to toggle code quicly.
  4. Quick Install: Just upload to the tinymce plugins’ folder and update tinymce configurations. That is it.
  5. Source Code: Nothing is hidden.

Installation

  1. Upload the files to the tinymce plugins’ folder.
  2. Update your tinymce configuration to add `leaui_code_editor` plugin, eg:
  3. 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 " 
});
TypeJavaScript Script
Authorleaui
CategoryJavascript
Price$11
Sales26
Rating0.00 from 1 rating
PublishedJul 11, 2014
Last UpdateJul 19, 2014
Compatible BrowsersIE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome
Source Files IncludedJavaScript 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.