Resizeable Text Fields

Based on Resizeable Textarea 0.1 (https://addons.mozilla.org/de/firefox/addon/3818), original coding by Raik Jürgens. Added support for select lists and horizontal resizing of input fields by Florian Höch. Should now work on all page types (XML/XHTML/you-name-it).

< Rückmeldungen auf Resizeable Text Fields

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 24.07.2017

Problems with Content-Security-Policy "script-source: 'self'"

Using this script for several years now – but the 2014 version has issues on sites having script-src: 'self' in their CSP rules. Which is quite easy to fix, and I hope you integrate this with the script here:

Change line 60 to read

//resizeableTF.TF[k].addEventListener('mousemove', new Function('if (!resizeableTF.isresizing && resizeableTF.curTF_Nr !== ' + k + ') { resizeableTF.curTF_Nr = ' + k + '; resizeableTF.posdiv() }'), false);
resizeableTF.TF[k].addEventListener('mousemove', resizeableTF.mousemoved(k), false);

add before newdiv: function (w, h, id, nr, cu) {

mousemoved: function (k) {
    if (!resizeableTF.isresizing && resizeableTF.curTF_Nr !== k ) { resizeableTF.curTF_Nr = k; resizeableTF.posdiv() }
},

Done.

Antwort schreiben

Anmelden um eine Antwort zu senden.