BB-Code-Button for Code-Block (Features)

by Auge, Monday, June 22, 2009, 23:24 (5421 days ago) @ Micha

Hello

I overworked the script and add temp. a new Button called "Code2". That is, what you mean, isn't it?

Yes, that's it. I would only suggest to set the cursor between the BB-code-tags instead to select the tags [1]. Maybe the script can get a routine to find a better place for the box (if it's needed; read the height of the viewport, read the position of the clicked button and decide where to place the box with wich size (maybe with the CSS-setting overflow:auto; [2] for the case of a slim viewport).

Except from that there is nothing more to say from outside (I didn't read the source code). :-)

Great work

[1] see: SELFHTML-Artikel: Formulare: Text an Cursorposition einfügen for code example

[2] By the way: In a beta version of mlf2 it gave two code-tags, one for code blocks, another for inline code. Is that behaviour existent in the final releases too (Alex?)?

Tschö, Auge


Complete thread:

 RSS Feed of thread