Forum

Questions and discussions

Disable WYSIWYG

Marketing, Population, SEO

Disable WYSIWYG

Postby MarT » Mon Nov 12, 2012 4:21 am

Hi
It is nice to use TEXT PAGES to have all extra sub pages organizes but WYSIWYG is annoying.
Is it some way to disable WYSIWYG HTML editor from the website, I would like to paste there pure HTML or PHP core but this editor overrite everything.

I see that .js stript is used in /admin/editor/editor.php but now sure how to display only content with out preloading it through WYSIWYG

Thanks
MarT
 
Posts: 50
Joined: Tue May 03, 2011 5:44 pm

Re: Disable WYSIWYG

Postby admin » Fri Nov 16, 2012 8:52 am

I think it is better to create separate text pages on ftp.

1) Create file /text/page.html

2) Add the code to the file:

Code: Select all
<?include("../admin/function/db.php");?>
<?include("../inc/header.php");?>
    ...
<?include("../inc/footer.php");?>



3) add the string into .htaccess file in the root directory:

Code: Select all
AddType application/x-httpd-php .php .htm .html .phtml
admin
Site Admin
 
Posts: 1461
Joined: Sun Mar 07, 2010 5:55 pm

Re: Disable WYSIWYG

Postby MarT » Mon Nov 19, 2012 11:54 pm

Thanks,
I add
Code: Select all
RewriteRule ^(.*)\.html$ /text/$1.php [L]

And it works perfectly.
MarT
 
Posts: 50
Joined: Tue May 03, 2011 5:44 pm


Return to Tips and tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.