Thanks Andrei,
I check it out and added the code needed. You might think about adding it to the next version. We use the forum mainly support and need the function of being about to post images. In my case I also removed the code function because we do not deal with code and have no need for anyone to post it in our forum.
For those that are interested in it, here is what I did for version 2.2
Edit file: ~\Libraries\Nop.Core\Html\BBCodeHelper.cs
private static readonly Regex regexQuote = new Regex(@"\[quote=(.+?)\](.+?)\[/quote\]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
// Added for Image - Brian Weston 11/01/2011
private static readonly Regex regexImg = new Regex(@"\[img\](.+?)\[/img\]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
// END
#endregion
// Added Replacement for image
if (replaceImg)
{
// format the img tags:
// becomes: <img src="Content/Images/ClosedHeader.jpg"></img>
text = regexImg.Replace(text, "<img src=\"$1\" rel=\"nofollow\"></img>");
}
// END
return text;
Edit file: ~\Libraries\Nop.Core\Html\HtmlHelper.cs
if (convertPlainTextToHtml)
{
text = HtmlHelper.ConvertPlainTextToHtml(text);
}
// Added true for each intance
if (allowBBCode)
{
text = BBCodeHelper.FormatText(text, true, true, true, true, true, true, true);
}
//END
if (resolveLinks)
{
text = ResolveLinksHelper.FormatText(text);
}
Edit file: ~\Presentation\Nop.Web\Content\editors\BBEditor\ed.js
/* Added Button Image in Editor */
document.write("<img class=\"button\" src=\"" + webRoot + "editors/BBEditor/images/picture.gif\" name=\"btnImg\" onClick=\"doAddTags('','" + obj + "')\">");
/* END */