The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Editor BBcode Tags to embed EditArea code editor in posts Details »» | |||||||||||||||||||||||||||||||||||||
Editor BBcode Tags to embed EditArea code editor in posts
Developer Last Online: Aug 2017
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
Installation
Notes
Changes
Download Now
Screenshots
Show Your Support
|
Comments |
#2
|
|||
|
|||
Reserved
|
#3
|
|||
|
|||
I've tried ...
but, when the save code is missing .. |
#4
|
|||
|
|||
What browser are you using?
What version of vBulletin do you have? When you clicked the button did you see a little progress image to the left? (dots go round and round) |
#5
|
|||
|
|||
Firefox 21.,
vBulletin 4.2.1., No., |
#6
|
|||
|
|||
This correction applies to the original file. If you have uploaded the latest file and followed the instructions in the OP ignore this post.
I thought that might be the problem. They changed the location of the little progress image. Open up the bbcode_editortags_script template and in the lower part modify as shown: Code:
if(typeof vB_AJAX_QuickEditor != 'undefined') { vB_AJAX_QuickEditor.prototype.preSave=function(postid,timeid){ this.postid = postid; this.timeid = timeid; this.progress = fetch_object('progress_' + this.postid) this.progress.style.visibility = 'visible'; var postText = fetch_object('post_message_' + postid).innerHTML; var matches = postText.match(/id="?editor_[\d]{13}"?/gi); for(var i = 0; i < matches.length; i++) { if(matches[i].indexOf(timeid) != -1) break; } var index = i; tid = 't_' + timeid vB_QuickEditor.saveCode(postid,tid,index); } vB_AJAX_QuickEditor.prototype.saveCode=function(postid,tid,index){ this.tid = tid; document.body.style.cursor='wait'; var C=YAHOO.util.Dom.get('postcount'+postid); var D=editAreaLoader.getValue(tid); this.savedCode = D; editAreaLoader.setValue(tid, ''); this.ajax_req=YAHOO.util.Connect.asyncRequest('POST',fetch_ajax_url('editpost.php?do=updatecode&postid='+postid), {success:vB_QuickEditor.updateCode, failure:vB_QuickEditor.updateCode,scope:vB_QuickEditor}, 'do=updatecode&ajax=1' + '&securitytoken=' + SECURITYTOKEN + '&message=' + PHP.urlencode('I hate Internet Explorer') + '&code=' + PHP.urlencode(D) + '&postid=' + postid + '&index=' + index + '&posthash=' + vBulletin.attachinfo.posthash + '&poststarttime=' + vBulletin.attachinfo.poststarttime + '&relpath=' + PHP.urlencode(RELPATH) + '&postcount=' + PHP.urlencode(C.name)); } vB_AJAX_QuickEditor.prototype.updateCode=function(C){ if(C.responseXML){ vB_QuickEditor.progress.style.visibility = 'hidden'; document.body.style.cursor='auto'; if(fetch_tag_count(C.responseXML,'error')){ var D=fetch_tags(C.responseXML,'error'); var A='<ol>'; for(var B=0;B<D.length;B++){ A+='<li>'+D[B].firstChild.nodeValue+'</li>' } A+='</ol>'; var saveDiv = fetch_object('d_' + this.timeid) saveDiv.getElementsByTagName('div')[0].innerHTML = A; saveDiv.getElementsByTagName('input')[1].style.display = 'block'; }else{ editAreaLoader.setValue(vB_QuickEditor.tid, fetch_tags(C.responseXML, 'postbit')[0].firstChild.nodeValue); } } return false } } EDITED: I found a better fix |
#7
|
|||
|
|||
I did not find the template bbcode_editortags_script
the existing bbcode_editor_script |
#8
|
|||
|
|||
I meant bbcode_editor_script.
Upload the new product file and over write the old one and change the code in the bbcode manager and it should work |
#10
|
|||
|
|||
If you made that template change you will have to go back to bbcode_editor_script and revert it. If it shows red it needs to be reverted, so it gets the new version from MASTER STYLE
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|