Same issue on my forum too. Glad it's not just my boards
Forums problem when Editing an article in Advanced Mode
Collapse
X
-
-
Solution from vb-germany.com:
orange = file name; red = old code; blue = new code
Originally posted by pogo
In der orange markierten Datei sucht man die rot markierte Zeile und ersetzt sie mit der blau markierten Zeile.
Damit die richtige Zeile einfacher zu finden ist, ist noch die Zeilennummer der ersten Zeile des Codes mit angegeben.
In diesen Fällen also 414, 143, 465, etc.
Das Minus vor der Zeile besagt, dass diese Zeile zu entfernen ist.
Das Plus vor der Zeile besagt, dass diese Zeile hinzuzufügen ist.
Minus oder Plus dürfen auf gar keinen Fall bei der Änderung mit eingefügt werden!
Der restliche Code ist nicht zu verändern und dient nur dem Auffinden der korrekten Zeile, die zu ändern ist.
Code:Index: [COLOR="#FFA500"]clientscript/vbulletin_quick_edit.js[/COLOR] =================================================================== --- clientscript/vbulletin_quick_edit.js (revision 55763) +++ clientscript/vbulletin_quick_edit.js (revision 55764) @@ -414,7 +414,7 @@ form.add_variable('quickeditnoajax', 1); } form.add_variable('postid', vB_QuickEditor.postid); - [COLOR="#FF0000"]form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents());[/COLOR] + [COLOR="#0000FF"]form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].getRawData());[/COLOR] form.add_variable('reason', fetch_object(vB_QuickEditor.editorid + '_edit_reason').value); form.add_variable('posthash', vBulletin.attachinfo.posthash); form.add_variable('poststarttime', vBulletin.attachinfo.poststarttime);
Code:Index: [COLOR="#FFA500"]clientscript/vbulletin_quick_edit_picturecomment.js[/COLOR] =================================================================== --- clientscript/vbulletin_quick_edit_picturecomment.js (revision 55763) +++ clientscript/vbulletin_quick_edit_picturecomment.js (revision 55764) @@ -143,7 +143,7 @@ form.add_variable(this.vars.objecttype, this.objectid); form.add_variable(this.vars.type, this.vars.xid); form.add_variable('attachmentid', this.vars.attachmentid); - [COLOR="#FF0000"]form.add_variable('message', vB_Editor[this.editorid].get_editor_contents());[/COLOR] + [COLOR="#0000FF"]form.add_variable('message', vB_Editor[this.editorid].getRawData());[/COLOR] form.add_variable('reason', YAHOO.util.Dom.get(this.editorid + '_edit_reason').value); form.add_variable('wysiwyg', vB_Editor[this.editorid].is_wysiwyg_mode());
Code:Index: [COLOR="#FFA500"]clientscript/blog_quick_edit.js[/COLOR] =================================================================== --- clientscript/blog_quick_edit.js (revision 55763) +++ clientscript/blog_quick_edit.js (revision 55764) @@ -465,7 +465,7 @@ } form.add_variable(this.factory.objecttype, this.objectid); - [COLOR="#FF0000"]form.add_variable('message', vB_Editor[this.editorid].get_editor_contents());[/COLOR] + [COLOR="#0000FF"]form.add_variable('message', vB_Editor[this.editorid].getRawData());[/COLOR] form.add_variable('reason', YAHOO.util.Dom.get(this.editorid + '_edit_reason').value); form.add_variable('wysiwyg', vB_Editor[this.editorid].is_wysiwyg_mode());
Code:Index: [COLOR="#FFA500"]clientscript/vbulletin_quick_edit_generic.js[/COLOR] =================================================================== --- clientscript/vbulletin_quick_edit_generic.js (revision 55763) +++ clientscript/vbulletin_quick_edit_generic.js (revision 55764) @@ -502,7 +502,7 @@ } form.add_variable(this.vars.objecttype, this.objectid); - [COLOR="#FF0000"]form.add_variable('message', vB_Editor[this.editorid].get_editor_contents());[/COLOR] + [COLOR="#0000FF"]form.add_variable('message', vB_Editor[this.editorid].getRawData());[/COLOR] form.add_variable('reason', YAHOO.util.Dom.get(this.editorid + '_edit_reason').value); form.add_variable('wysiwyg', vB_Editor[this.editorid].is_wysiwyg_mode());
Code:Index: [COLOR="#FFA500"]clientscript/vbulletin_textedit.js[/COLOR] =================================================================== --- clientscript/vbulletin_textedit.js (revision 55763) +++ clientscript/vbulletin_textedit.js (revision 55764) @@ -772,7 +772,7 @@ } else { - [COLOR="#FF0000"]var changed = (vB_Editor[x].initial_text_crc32 != current_text_crc32);[/COLOR] + [COLOR="#0000FF"]var changed = (vB_Editor[x].lastautosave_text_crc32 != null && vB_Editor[x].initial_text_crc32 != current_text_crc32);[/COLOR] } if (vB_Editor[x].initialized && changed)
.......Comment
-
Comment
-
Code:Index: [COLOR="#FFA500"]clientscript/vbulletin_quick_edit.js[/COLOR] =================================================================== --- clientscript/vbulletin_quick_edit.js (revision 55763) +++ clientscript/vbulletin_quick_edit.js (revision 55764) @@ [COLOR="#FF0000"][B]-414,7 +414,7[/B][/COLOR] @@ form.add_variable('quickeditnoajax', 1); } form.add_variable('postid', vB_QuickEditor.postid); - [COLOR="#FF0000"]form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents());[/COLOR] + [COLOR="#0000FF"]form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].getRawData());[/COLOR] form.add_variable('reason', fetch_object(vB_QuickEditor.editorid + '_edit_reason').value); form.add_variable('posthash', vBulletin.attachinfo.posthash); form.add_variable('poststarttime', vBulletin.attachinfo.poststarttime);
Search for the text:
form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents());
replace with:
form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].getRawData());
The red bold number is the line number, in this case 414.......Comment
-
You're right, can't find it too in the files but it's the same like in the tracker diff file. Maybe someone from staff can clear this up........Comment
-
I've tried the fix, but my js files are kinda different. For example, in clientscript/vbulletin_quick_edit.js I don't have form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents()); , instead this: A.add_variable("message",vB_Editor[vB_QuickEditor.editorid].get_editor_contents()); I can risk myself and modify in those files that look similar but in the last file, clientscript/vbulletin_textedit.js, there is nothing resembling to thatComment
-
Comment
-
So, please, ANYBODY KNOWS if it is there ANY way to solve this VERY ANNOYING bug??Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment