Posts: 998 Location: Up a tree
Sat 02 Mar, 2013 13:05
Sorry, but I actually disagree on this one. :P
IP's code-box is a dinosaur or a relic from the the past, and so is phpBB3's
I'm not going to elaborate but from experience there are better ways of doing things, like I added the smilie insert to JitBit at my hobby site in the same manner that they add everything else, even tough I do still need to re-process the [img tags for the smilies to make them WYSIWYG so that they don't generate thumbnails.
The script auto-closes open tags, so the
Oh!-Oh! - second image warning in Icy's editor-bar wouldn't be required. ;)
Neither would the "Help Line" because it tells you on mouse-over what things do - All browsers being on a level playing field of course? :P
<button title="bold" onclick="doClick(\'bold\');" type="button" style="background-image:url(\'editor/images/b.gif\');"> </button>
<button title="italic" onclick="doClick(\'italic\');" type="button" style="background-image:url(\'editor/images/i.gif\');"> </button>
<button title="underline" onclick="doClick(\'underline\');" type="button" style="background-image:url(\'editor/images/u.gif\');"> </button>
<button title="hyperlink" onclick="doLink();" type="button" style="background-image:url(\'editor/images/url.gif\');"> </button>
Interestingly enough there are now two wysiwyg bbCode editors on the market that are
GPL that possibly deserve a look at.
http://wysiwygbbcode.codeplex.com/
http://www.sceditor.com/
And as I dread to mention MyBB - It appears that Sam Clarke is quite prepared to support it and the editor for use in forum software.
Edit:
Dammit! I just realised in cutting that <button script into here that I never converted the titles to $lang['vars - that can stay in the wilderness until more important things have been attended to. :
LOL: