Post editor is 89953px tall. How to fix?
Goodness, that’s pretty funny! Try clearing your cookies. Specifically, there should be a cookie named “TinyMCE_content_size” which is most likely your culprit.
Goodness, that’s pretty funny! Try clearing your cookies. Specifically, there should be a cookie named “TinyMCE_content_size” which is most likely your culprit.
A simple solution may be to download the Members Plugin and then give the subscriber permission to upload_files
Greedy and Ungreedy modifier: preg_replace( ‘/<p>(.+)<\/p>/Uuis’, ‘$1’, $content ); Tested with this script: <?php $c = array(); $c[] = ‘<p>text</p>’; $c[] = ‘<p><div>text</div></p>’; $c[] = ‘<p><div><div>text</div></div></p>’; foreach ( $c as $content ) { $e = preg_replace( ‘/<p>(.+)<\/p>/Uuis’, ‘$1’, $content ); var_dump( $e ); } Also try remove_filter( ‘the_content’, ‘wpautop’ );
First, I believe your css should use only one colon: .mce_mybutton:before { content: ‘\f459’; } Now, in order to get the css to the proper place. First, we add an action to admin_print_styles; then we check to see if we are editing a post or page; then we enqueue our stylesheet. We run the check … Read more
I wish I was able to explain exactly WHY this works, but from the help of another wordpress.stackexcchange question I was able to find the solution. Adding tinyMCE.triggerSave(); directly after the .submit function forces the content to update. This was taken directly from another thread’s answer: “tinyMCE textarea is initially unseen by the used serialize … Read more
Since that SO link is to my question, I will re-post it and expand on it here. TinyMCE does NOT save “p” tags in the editor, instead linebreaks and the like are converted into p tags by WordPress functions (such as wpautop(). So the solution was a combination of altering my textbox to look like: … Read more
I recommend just enabling the built-in media button by setting: ‘media_buttons’ => true It will place the button above the toolbar but it’s a very simple solution.
According to the documentation you also have textLength property you can call.
Seems that the problem is with the virtual site config – the docroot in the fastcgi config. In my example I’m using nginx webserver and PHP7. It has to look like this: location / { try_files $uri $uri/ /index.php?q=$request_uri; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME … Read more
Looking at the contents of class-wp-editor.php, it looks like tiny_mce_before only triggers if you are not using the Teeny version of the editor: /* * For people who really REALLY know what they’re doing with TinyMCE * You can modify $mceInit to add, remove, change elements of the config * before tinyMCE.init. Setting “valid_elements”, “invalid_elements” … Read more