Textpattern CMS support forum
- From: Virton (BE)
- Registered: 2004-10-01
- Posts: 577
$prefs or jquery question
I would like to adapt the petri ikonen plugins (kuo) to the new textfilters layout of 4.7 dev
The jquery code to target the options (textile, etc.) is currently:
$("select#markup-body option[value=0]").attr("selected","selected"); $("select#markup-excerpt option[value=0]").attr("selected","selected");
markup-body id no longer exists. The select code is now quite different … how to target and force the textfilter?
I also tried this in the plugin body, with an unexpected effect:
set_prefs ('use_textile', '0');
Thank you for your help !
Last edited by jpdupont (2017-07-17 07:45:12)