Seite 1 von 1

BBCode Highlight

Verfasst: 04.12.2008 03:53
von jerikool
Wie bekomme ich es hin das der Text markiert bleibt nachdem ich ein BBCode Button drück (wie hier bei phpbb.de).

phpBB 3.0.3 (Prosilver basierender Style)

Danke

Verfasst: 04.12.2008 17:27
von jerikool
Open styles/prosilver/template/editor.js

Find

Code: Alles auswählen

txtarea.selectionStart = selEnd + open.length + close.length;
txtarea.selectionEnd = txtarea.selectionStart;
Replace With

Code: Alles auswählen

txtarea.selectionStart = selStart + open.length;
txtarea.selectionEnd = selEnd + open.length;
Problem gelöst! :wink:

Verfasst: 05.12.2008 07:06
von Dr.Death