Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360017

Summary: Check-ins full screen mode
Product: z_Archived Reporter: Onno van der Straaten <onno.van.der.straaten>
Component: EPFAssignee: Onno van der Straaten <onno.van.der.straaten>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Onno van der Straaten CLA 2011-10-05 14:14:16 EDT
See http://dev.eclipse.org/mhonarc/lists/epf-dev/msg03810.html
Comment 1 Onno van der Straaten CLA 2011-10-05 14:28:04 EDT
Save causes "NetworkError: 404 Not Found - http://192.168.1.10:3000/publish.all_epf_practices.base/guidances/supportingmaterials/resources/practices.jpg"
Checkin causes formObj is null formObj.action = '/pages/checkin'; 
undo checkout causes formObj formObj.action = '/pages/undocheckout';
Comment 2 Onno van der Straaten CLA 2011-10-05 15:38:28 EDT
This is the piece of code that is not working. In full screen TinyMCE changes the DOM and then the form cannot be found by this code. So formObj becomes nil and save/checking fails with a Javascript error.

_checkin : function() {
var inst = tinyMCE.selectedInstance;
var ed = this.editor, formObj, os, i, elementId;
formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');
if (confirm('Save and check-in the current document?')) {
formObj.action = '/pages/checkin';
inst.execCommand('epfwikiSave');
}
return true;
},