div structure for inserting macros into tinymce falls foul of xhtml parsing...
ok here's the rub
I'm wanting to provide a macro to produce a "popup" window to an internal link.
so the end markup would be
<p>Whilst the Directors forecast that the impact of these closures will be positive for the Group overall, the closure of these stores and operations has had a material impact upon the overall current scale of operations of the Group. The results of these closed stores and operations, in addition to the one-off costs borne in connection with the Company Voluntary Arrangements (see
<a title="Click here to view 4 Exceptional items - opens in a new window" href="javascript:WindowOpenWindowCentered ('/financials/notes-to-the-condensed-half-yearly-financial-statements/04-exceptional-items/popup', 'popup',600,500,1,1)">note 4</a>), has similarly had a material effect upon the losses presented within the condensed statement of comprehensive income. Whilst the results of Sandcity Limited qualify under IFRS5 to be presented as discontinued operations, the impact of the CVA related store closures falls within results from continuing operations.</p>
so I've written a macro to generate the a tag. however inserting a macro into the tinymce within a paragraph trys to do
<p>dasjadsfljkdfas <div umb_macro ....></div> adflkadf;ljdfa</p> and xhtml says you can't have a div nested in a p tag so tinymce corrects this to <p>dasjadsfljkdfas </p><div umb_macro ....></div> adsfkl;jadsf;lkjdfa <p> </p> and hence when we get to the actual rendered content at the front end we have a floating space appearing after the rendered macro content.
ok so a little more playing and it seems that the front end renderer does tidy this up, however, it forgets that tinymce forces at least on space in a p tag, so that is the extra unwanted space I am seeing, although there is also the issue that the markup caused in the tinymce admin is particularly ugly...
div structure for inserting macros into tinymce falls foul of xhtml parsing...
ok here's the rub
I'm wanting to provide a macro to produce a "popup" window to an internal link.
so the end markup would be
so I've written a macro to generate the a tag. however inserting a macro into the tinymce within a paragraph trys to do
<p>dasjadsfljkdfas <div umb_macro ....></div> adflkadf;ljdfa</p> and xhtml says you can't have a div nested in a p tag so tinymce corrects this to <p>dasjadsfljkdfas </p><div umb_macro ....></div> adsfkl;jadsf;lkjdfa <p> </p> and hence when we get to the actual rendered content at the front end we have a floating space appearing after the rendered macro content.
any one have any workarounds?
ok so a little more playing and it seems that the front end renderer does tidy this up, however, it forgets that tinymce forces at least on space in a p tag, so that is the extra unwanted space I am seeing, although there is also the issue that the markup caused in the tinymce admin is particularly ugly...
forgot again... umb: 4.5.2 iis7 windows 2008 .net3.5 mediumtrust clustered hosting environment.
is working on a reply...