The visual-editor tag has no wiki summary.
1
vote
1answer
80 views
Hide page visual editor if template is selected - redux
The answer given to a previous and identical question is unfortunately not working on my WP install.
I'm using a version of the function recommended there.
function nim_hide_editor() {
$post_id ...
0
votes
1answer
938 views
Restrict file uploads by extension?
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size?
Bonus question: Can I limit users to only be able view files they have uploaded themselves?
3
votes
1answer
245 views
Shortcode to insert <!--nextpage-->
Since wordpress does not have a menu icon (aka "user friendly) way to add the command to a post or page, I'm trying to create a shortcode to do it.
However, as logic would have it, its not that ...
0
votes
2answers
1k views
Theme Advanced Styles in Visual Editor and Paragraphs
After i add these codes to functions.php:
add_editor_style();
function childtheme_mce_btns2($orig) {
return array('formatselect','styleselect', 'underline', 'justifyfull', 'forecolor', '|', ...
4
votes
1answer
1k views
Styling Shortcodes in Visual Editor
Does anyone know how to style the visual editor so that when specific shortcodes are used they are replaced with an image within the visual editor?
I have found that many users screw up the shortcode ...
3
votes
2answers
636 views
Forcing reload of editor-style.css
Is there a method to force the refresh of editor-style.css, when I change manually the stylesheet for the TinyMCE editor? Modification doesn't show immediately but they will be cached in the admin ...
2
votes
2answers
1k views
How do you change the visual editor's background color?
I have a Wordpress site in which the background color is black and the text is white. The site is fine, but it's a pain trying to edit content in the visual editor as the background is white (same ...
2
votes
3answers
2k views
Hide page visual editor if certain template is selected?
How do I hide the page editor (WYSIWYG editor) if the current page is set to a certain template.
I have the following code already to add in custom meta boxes when certain templates are chosen:
...
2
votes
4answers
4k views
Keep HTML format when switching from Visual to HTML editor
I've been looking around for a solution that will allow me to edit HTML code and have it remain after a switch to the Visual editor and back.
I've tried a bunch of things with no luck:
the ...
2
votes
4answers
1k views
Disable WYSIWYG editor only when creating a page
I read several articles about configuring the WordPress editor. For example, this snippet shows how to permanently set the editor to HTML or WYSIWYG for all contents.
I'm wondering if it's possible ...
1
vote
1answer
766 views
TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
I want something very simple: a custom metabox with a TinyMCE editor in it.
The following code help me achieve that easily in 3.1.4:
add_action( 'add_meta_boxes', 'add_metaname_box');
function ...