Issue Bug Closed

#16176RTE-config in PageTS-config not loaded when in draft workspace

Andreas Wolf 05/24/06, 10:03 updated 06/27/08, 10:52

Description

Custom configuration for the Rich Text Editor (and I suppose anything else that can be configured via page-TS) is not loaded when editing in a draft-workspace.

The most serious impact I noticed this has is that if you manually (i.e. via page-TSconfig) allowed special HTML-elements and attributes, e.g. , these elements are removed after saving to DB. This happens only in a draft-workspace, in live-workspace everthing is ok.

I further investigated this issue and found a bug in t3lib_BEfunc::getTSconfig_pidValue. This function returns the pid of the workspace-record, which is always -1, instead of the original pid. Because of this the page-TSconfig can’t be loaded.
I modified this function so it returns the correct value (see attached patch-file)

(issue imported from #M3544)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.