Register Members List Search Today's Posts Mark Forums Read

Mod Options
NEW Editor Tags allow you to embed the CodeMirror code editor in posts Details »
NEW Editor Tags allow you to embed the CodeMirror code editor in posts
Mod Version: 2.00, by nerbert (Coder) nerbert is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 4.2.1 Rating: (0 vote - 0 average) Installs: 4
Released: 03 Nov 2013 Last Update: 04 Nov 2013 Downloads: 28
Not Supported Uses Plugins Re-usable Code External Content  

NEW Editor Tags allow you to embed the CodeMirror code editor in posts as an editable alternative to [code], [html] and [php] tags

This is a whole new version of editor tags that replaces the ones here This new version uses the CodeMirror editor instead of EditArea.

Use [editor] tags to display, edit and store code in posts. You can edit code and save it in the database without editing the post, just click the Save button at the bottom of the editor.

The codeMirror code editor displays formatted highlighted code and has the usual features of code editors. Features include search and replace, highlight matching, undo/redo, syntax and font size selection, auto indent, auto format, go to line and word-wrap toggling.

  • Control panel in Settings > Options > BB Code Settings

  • Enable/Disable allows you to turn Editor Tags on and off. When Editor Tags are disabled, code posted in Editor Tags will show in a pre element much like a Code Tag display.

  • By default, editing permission is the same as editing for the post. You can disable editing globally in the control panel or disallow groups to edit code.

  • Edited code can be saved without editing the post. A Save button saves the CodeMirror contents to the database with AJAX.

  • The max character limit for posts can be overridden to allow posting and editing of large files

  • Default height of the editor can be set in the control panel.

  • Resizable in all browsers.

  1. If you already have the old version using EditArea, delete the bb code in the BB Code Manager and uninstall the old version. Unless you have some other use for it, delete all the EditArea files.

  2. Unzip the CodeMirror package and upload it as a subdirectory in clientscript folder.

    Note: The easy way to upload large packages is to first create an "upload_zips" folder in your forum root, then upload the zipped file there. Then unzip the file and by default the new folder will be in the upload_zips folder. You can then move or copy it to clientscript.

  3. Import the product file in Admin CP. No need to use the BB Code feature, the plugins do all the work!

  • Browser compatibility: This has been tested in Chrome, Firefox, Opera and some versions of IE.

  • The product creates three new templates, bbcode_editor, bbcode_editor_script, which goes in the <head>, and editortags.css.

Download Now

Only licensed members can download files, Click Here for more information.


Click image for larger version

Name:	codemirror_tag_admin.jpg
Views:	115
Size:	163.6 KB
ID:	147023   Click image for larger version

Name:	codemirror_tag.png
Views:	357
Size:	43.9 KB
ID:	147024  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Force Standard Editor for IE10 Users (Editor Workaround) for VB 4.x by BOP5 BirdOPrey5 vBulletin 4.x Add-ons 57 04 Jan 2020 22:01
BB Code Enhancements Editor BBcode Tags to embed EditArea code editor in posts nerbert vBulletin 4.x Add-ons 15 03 Nov 2013 04:03
New Posting Features Put tags box above the text editor RC. vBulletin 3.7 Template Modifications 15 22 Oct 2010 21:47

Old 03 Nov 2013, 04:04
nerbert nerbert is offline
Join Date: May 2008
Reply With Quote
Old 03 Nov 2013, 14:09
djbaxter djbaxter is offline
Join Date: Aug 2006
Location: Ottawa, Canada
Nice idea. I can see this being a very nice addition to certain types of forums.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 00:29.

Layout Options | Width: Wide Color: