Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360017 - Check-ins full screen mode
Summary: Check-ins full screen mode
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EPF (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Onno van der Straaten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 14:14 EDT by Onno van der Straaten CLA
Modified: 2023-02-16 16:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;
},