I just tried this one...
What I did was to place the
umbraco.editorControls.dll file inside my /bin folder.
I then tried to insert a macro in a regular textpage and clicked on "save and publish" - BOOM!
Maybe I have a different issue going here!? This error occcurs in FF2 as well as in IE7 and IE6. My XSLT inserts a plain img tag with src set via a generic parameter.
The image shows up just fine in the editor prior to saving and works great directly in a template but not at all in the WYSIWYG editor...
Server Error in '/' Application.
Length cannot be less than zero.
Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2819889
System.String.Substring(Int32 startIndex, Int32 length) +11
umbraco.editorControls.tinymce.TinyMCE.replaceMacroTags(String text) +110
umbraco.editorControls.tinymce.TinyMCE.Save() +114
umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +80
umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +21
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
" - Yeah I'd like to share your point of view, as long as it's my view too... (
http://www.d-a-d.dk/lyrics/pointofview)