Jack
Forum Replies Created
-
Forum: Plugins
In reply to: Tiny MCE – Adding the noneditable pluginHey Nick,
Was looking for the same thing, so had a dig in the WordPress code. I managed to find the filter tiny_mce_plugins, which gets passed an array of plugin strings. You can add the noneditable string to that array to enable the plugin… if it was included in the WordPress install, which it isn’t unfortunately.
One hack would be to copy the plugin file from another of tinymce to the correct place (wp_includes/js/tinymce/plugins/noneditable/plugin.min.js).
The other way would be just to include the contents of the plugin file in your javascript (a slightly horrible way which could lead to conflict, unless you renamed the plugin in the code).
I tried doing the later, but the plugin didn’t work well enough for my requirements (protecting divs, which with the plugin active, you could key into and then edit still).
Something I have also tried is setting contenteditable=false on the div to protect, which works until you click on it, which is set to popup a tinymce popup for my div. The div ends up replacing the body contents. I haven’t been able to figure out why yet.
Hope this helps.
Was thinking about modifying the noneditable plugin to see if I can get it to work properly. Will let you know how I go.
Would be good to hear if anyone has another way of protecting content in the tinymce visual editor?
Cheers.
Forum: Plugins
In reply to: [Lockdown WP Admin] Can't find login pageHad the same problem. I have added the below to my .htaccess file in the wordpress base folder:
RewriteEngine On
RewriteRule ^secret/$ index.php [L]Setting the WordPress Login URL to secret works with this. Hope that helps.