Skip to content

TinyMCE plugin that uses ACE Editor (if available) as HTML editor for improved user experience code highlighting, indentation, line numbers and more.

License

Notifications You must be signed in to change notification settings

akshayraje/tinymce-ace-code-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

TinyMCE Ace code editor

TinyMCE plugin that uses Ace Editor (if available) as HTML editor for improved user experience code highlighting, indentation, line numbers and more. If ACE is not available, it falls back on using textarea for code editing.

Dependencies

Usage

In TinyMCE init, you need to add code_toggle to plugins and also to the toolbar at whatever location you want the toggle button to appear.

Example init code:

tinymce.init({
    selector: 'textarea',
    menubar: false,
    statusbar: false,
    plugins: [
        'link textcolor colorpicker code_toggle'
    ],
    toolbar_item_size: "small",
    toolbar1: 'bold italic underline link backcolor forecolor | code_toggle',
    height : 300,
});

About

TinyMCE plugin that uses ACE Editor (if available) as HTML editor for improved user experience code highlighting, indentation, line numbers and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published