SMF Community Helpers > SMF Documentation Help

The Wiki

<< < (15/15)

Angelina Belle:

--- Quote from: Labradoodle-360 on October 05, 2010, 05:00:35 PM ---If you want something changed, just let me know and I'll help you out.

--- End quote ---
Would it be possible to do a little adjustment to the textbox for editing an article? Some little problem with width causes "dueling scrollbars", at least with IE8.

http://www.simplemachines.org/community/index.php?topic=412572.0

Angelina Belle:
I'd like the HTML output by the code tag to change.
At the moment, the code tag seems mostly useless.
And Josh has asked if I could make a {{code}} template to do the "select" bit we have on the forum.
After a little thought, I realized I could not.  http://wiki.simplemachines.org/smf/Template_talk:Code

I think I'd like to see <.code> become

--- Code: ---<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">
</a></div>    <code class="codebody">

--- End code ---

Which would make </code>

--- Code: ---</code>
--- End code ---

If that doesn't work, then I probably just want to nest in a <.pre> tag inside the <.code> output.
Either way, I'd want to re-skin code pre

I think this change is needed because there is no way, in wikitext, to do <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">

Following this change, we'd just have to add
[*] to the CSS, styles for .codeheader and .codebody, as well as .codeheader pre, to keep it looking good by removing the dashed blue border
[*] to the js, function smfSelectText(this)

Navigation

[0] Message Index

[*] Previous page

Go to full version