Back to vBulletin 4.x Add-ons

Code-Mirror Editor for Templates and Plugins in Admin CP (vB3, vB4)
Mod Version: 1.00, by nerbert

vB Version: 4.2.2 Rating: (3 votes - 5.00 average) Installs: 15
Released: 04 Aug 2014 Last Update: Never Downloads: 82
Not Supported Code Changes Additional Files Re-usable Code  

This product replaces my earlier EditArea version EditArea Code Editor for Templates & Plugins in Admin CP (vB3, vB4) using the more advanced Code-Mirror editor.

With this product installed you will have a small version of the Code-Mirror editor instead of the plain textarea for editing templates, plugins and other code. You can get the full page version with all the features by clicking the Large Edit Box button.

With my toolbars the Code-Mirror editor provides basic code editor features: syntax highlighting, search and replace, text matching, undo/redo, font size and syntax selection, auto indent, tab size, tabs/spaces, go to line, word wrapping toggle and code collapsing (click line numbers)

Installation:

1. Upload the entire codemirror-3.0 folder to the clientscript folder.

2. Name out a copy of admincp/textarea.php (for example textarea_ORIGINAL.php) and upload the new version of textarea.php file to the admincp folder.

(The best way to do this is first create a "zips" folder in your main forum directory, upload the zip file to it and use cPanel or other server manager to unzip the file into the new folder. Then you can copy or move files wherever you want them.)

3. Open the new version of admincp/textarea.php, scroll down to the commented code at the bottom and copy the print_textarea_row() function.

4. Name out a copy of includes/adminfunctions.php (for example adminfunctions_ORIGINAL.php). Open the file and find the function print_textarea_row() on line 999 in vB4 or earlier in vB3, change the name to print_textarea_row_old() and paste in the new version you copied from textarea.php.

It should be ready to go.

Download

File Type: %1$s template_editor_upload.zip (593.9 KB, 103 downloads)

Screenshots

Click image for larger version
Name:	admincp.jpg
Views:	229
Size:	112.5 KB
ID:	149963   Click image for larger version
Name:	textarea.jpg
Views:	192
Size:	83.4 KB
ID:	149964  

Similar Mods

Administrative and Maintenance Tools EditArea Code Editor for Templates & Plugins in Admin CP (vB3, vB4) vBulletin 4.x Add-ons
BB Code Enhancements NEW Editor Tags allow you to embed the CodeMirror code editor in posts vBulletin 4.x Add-ons
BB Code Enhancements Editor BBcode Tags to embed EditArea code editor in posts vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024