disable/enable WYSIWYG
Moderator: Thorsten
disable/enable WYSIWYG
i'am using the new myFAQ 2.1 dev and want to put off the wysiwyg, is this possible? i want to use simple textareas to show my content and the wysi editor creates html tags into my text :/
Hi,
currently there's no built-in option to disable the editor component but we could add this. Why don't you like the editor?
bye
Thorsten
currently there's no built-in option to disable the editor component but we could add this. Why don't you like the editor?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
you have to disable the Editor in admin/header.php
bye
Thorsten
you have to disable the Editor in admin/header.php
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
just look into the PMF_Faq class in the file inc/Faq.php.
Look for the function addRecord().
bye
Thorsten
just look into the PMF_Faq class in the file inc/Faq.php.
Look for the function addRecord().
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi thomask,
you should also take a look at the basicXSSClean function in the inc/Init.php file, precisely:
where we impose the deletion of some unsafe (i.e. used for common attacks for e.g. XSS injection) HTML tags.
Ciao,
Matteo
you should also take a look at the basicXSSClean function in the inc/Init.php file, precisely:
Code: Select all
...
// remove really unwanted tags
do {
$oldstring = $string;
$string = preg_replace('#</*(applet|meta|xml|blink|link|style|script|embed|object|iframe|frame|frameset|ilayer|layer|bgsound|title|base)[^>]*>#i',"",$string);
} while ($oldstring != $string);
...
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist