Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Editor BBcode Tags to embed EditArea code editor in posts Details »»
Editor BBcode Tags to embed EditArea code editor in posts
Version: 1.1, by nerbert nerbert is offline
Developer Last Online: Aug 2017 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.0 Rating:
Released: 05-31-2013 Last Update: 06-04-2013 Installs: 6
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

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

This product is no longer supported. See https://vborg.vbsupport.ru/showthrea...60#post2457960

New Version 1.1 (see below for installation)

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 EditArea code editor displays formatted highlighted code and has the usual features of code editors. It's the editor used in cPanel. Features include search and replace, go to line, undo/redo, syntax and font size selection, highlight toggling, word-wrap toggling and full screen toggling.



Features
  • Control panel in Settings > Options > BB Code Settings

  • Enable/Disable allows you to turn Editor Tags off without deleting the BB Code. 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.

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

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

  • [New] Resizable in all browsers.

  • [New] Works with or without Quick Edit enabled

Installation
  1. Go to sourceforge to download the EditArea product. Upload the unzipped editarea_0_8_2 folder to the 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.
  2. Import the product file in Admin CP.

  3. Upload the button image to the images/editor folder

  4. Create the BB Code in the Custom BB Codes feature
    Title: Editor Tags

    BB Code Tag Name: editor

    Replacement:
    Code:
    <div id="editor_" style="margin:16px 0px;">	
            <div id="mask_" style="z-index:2;position:relative;background:blue;opacity:0.0;filter:Alpha(opacity=0);display:none;"></div>
    	<pre id="pre_" class="editortags">{param}</pre>
            <textarea id="t_" readonly="" class="editortags">{param}</textarea>
            <div id="saveDiv_" class="save">
            	<span id="progress_" style="visibility:hidden;"><img  src="images/misc/progress.gif" style="margin:0px 0px -4px -16px;" alt=""></span>
                    <input id="save_" class="button" style="margin:2px;display:none" type="button" value="Save" onclick="vB_QuickEditor.preSave(this.parentNode.parentNode)" /> 
                    <div id="error_" style="display:none;"></div>
                    <img id="img_" style="float:right;margin:3px 1px -4px;" alt="" />
                    <input id="resize_" type="button" style="background:white;opacity:0.0;filter:Alpha(opacity=0); border:none;height:22px;width:13px;float:right;margin:1px -13px -2px 0px;">
                    <input id="clear_" type="button" class="button" style="display:none;float:right;" value="Clear" onclick="vB_QuickEditor.clearError(this)" />       
            </div>
            <iframe frameborder="0" style="display:none;" onload="if(typeof build != 'undefined') build(this)"></iframe>
    </div>
    Example: [editor] ..... CODE ..... [/editor]

    Description: Puts the EditArea code editor in posts

    Use {option} No

    Button Image: images/editor/editor.png

    Remove Tag If Empty No

    Disable BB Code Within This BB Code Yes

    Disable Smilies Within This BB Code Yes

    Disable Word Wrapping Within This BB Code Yes

    Disable Automatic Link Parsing Within This BB Code Yes

  5. To install the new version 1.1, uninstall the old version, upload the new product file and change the Replacement code in the bbcode setting. Everything else stays the same.

Notes

  • Browser compatibility: This has been tested in Chrome, Firefox, Opera and some versions of IE. EditArea will not work well with Opera; the code displays properly but the tab key will not indent the code. There are some problems with IE8 throwing errors, this can be avoided by not placing more than one editor in a single post.

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

  • If you already have EditArea on your server from this product, EditArea Code Editor for Templates & Plugins in Admin CP, you can use it by changing the path in the <script> tag in bbcode_editor_script template.

Changes
  • June 2 2013 Eliminated the progess image to theleft of the Save button. It was causing problems in vB4.2.1. Fixed minor problem with display in IE.
    Upload the new product file and overwrite the old one. Change the Replacement code above in the BBcode manager

  • June 5 2013 Released new version 1.1. I eliminated the alternative height setting in the admin CP as the editor is now resizable in all browsers.

Download Now

File Type: xml product-editor_tags.xml (20.5 KB, 27 views)

Screenshots

File Type: jpg ETedit-logged.jpg (146.7 KB, 0 views)
File Type: jpg ETedit-notlog.jpg (139.8 KB, 0 views)
File Type: jpg ETadmin.jpg (165.3 KB, 0 views)
File Type: jpg editarea.jpg (72.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-05-2013, 02:18 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Muhammad Rahman: I'm wondering if you have Quick Edit disabled?

Settings > Options > Message Posting and Editing Options > Quick Edit

__________________________________________________ ______________________________ ___________

I finished a new Version 1.1, which allows resizing in all browsers, so the special height setting in the admin CP is no longer needed. Also editing is possible regardless of whether Quick Edit is enabled. Fixed miscellaneous minor bugs.
Reply With Quote
  #13  
Old 06-30-2013, 04:10 PM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
@ Muhammad Rahman: I'm wondering if you have Quick Edit disabled?

Settings > Options > Message Posting and Editing Options > Quick Edit

__________________________________________________ _________________________________________

I finished a new Version 1.1, which allows resizing in all browsers, so the special height setting in the admin CP is no longer needed. Also editing is possible regardless of whether Quick Edit is enabled. Fixed miscellaneous minor bugs.
still not working for my forum ..
Reply With Quote
  #14  
Old 11-02-2013, 03:10 PM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Is it possible to put AutoLISP (Autodesk AutoCAD)
Reply With Quote
  #15  
Old 11-02-2013, 03:35 PM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem as Muhammad Rahman
Reply With Quote
  #16  
Old 11-02-2013, 08:28 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by john7911 View Post
I have the same problem as Muhammad Rahman
I don't use this any more because I have something better. It has a minor imperfection or two I've been trying to fix but since I have so many other things going on I think I'll just post it as is.

The new product uses the CodeMirror editor and is completely different from this so I'll start a new product thread. I have to test it some more and tidy it up so give me a few hours.

I'll post a link here when I post the new product.
Reply With Quote
  #17  
Old 11-03-2013, 04:03 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a whole new version that uses CodeMirror

https://vborg.vbsupport.ru/showthread.php?t=304118
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04260 seconds
  • Memory Usage 2,307KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (5)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete