Was caught up in other projects, but now I am digging into this issue again.
As mentioned we are running a migration project and the mentioned behavior is on a SP 2010 installation with an upgraded MOSS 2007 Content DB with no visual upgrade (UIVersion=3). The 2007 environment which is being migrated works as expected in regards to the custom tags.
The tags that are being stripped are Sharepoints own which is used for reusable content. A snippet before publishing looks like this:
After the page is published, the html looks like this:
Notice that the fragmentid tag is being stripped, which as an effect disables automatic updates of reusable content. BTW, it is not just the fragmentid tag, but all custom tags are stripped.
I have created a new SP 2010 site (UIVersion=4) from scratch with the radeditor features enabled, and on this site tags are not being stripped.
I also followed your suggestion and tried to use the builtin MOSS editor on the existing upgraded site, and this editor doesn't strip the tags. I deactivated the "Use RadEditor to edit HTML fields" feature, and after that things worked again as expected.
Please let me know if you need more details.
: After some more research I looked into the SPEditorTools.js file and started debugging. I notice a difference in the behavior when running the clean SP2010 site (UIVersion=4) and the upgraded MOSS2007->SP2010 site. In the MOSSTemplateManager function, the variable fragment
contains the tags. At some point a call to RadEditorGetStorageHtml is made, and here is the difference. In the clean SP2010 site RTE
is defined, and the code enters the part of handling reusablecontent. However, in the upgraded site RTE
is undefined and thus the script returns editor.get_html(true). Why is the RTE undefined at this point?
Created a new web with UIVersion=3, RTE still undefined. Performed a visual upgrade (UIVersion=4) for this particular web, and RTE is defined and the tags are not stripped. I then downgraded to UIVersion=3 and again RTE is undefined and tags are stripped.
Now curious, I created a completely new SP2010 site (UIVersion 4) and verified that everything works as expected OOTB. Created a new web and downgraded that to UIVersion 3. Tags are stripped and RTE is undefined. This should be easily reproducable for you guys.