OriginalEXE
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: add photo to profileHi,
you need to sign up for your own gravatar with an email you are using: http://en.gravatar.com/
Forum: Alpha/Beta/RC
In reply to: Featured image not showing when using SVGIt does not work here on 3.7.1 nor 3.8
It seems WP can’t recognize .svg file dimensions so it sets width and height to 1×1.
Forum: Plugins
In reply to: [MP6] moby6.js line 84Same here, exact error line from console:
Uncaught TypeError: Cannot call method ‘hasClass’ of undefined moby6.js?ver=1384811920:84How to reproduce: Use Chrome and resize the window
Forum: Plugins
In reply to: [MP6] Opening a select menu opens "About WordPress"I can confirm that I have the same problem, check here: http://make.ww.wp.xz.cn/ui/2013/11/08/mp6-2-2/#comment-24145
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEAwesome, the solution you went with is really smart way, no js needed (looks like I was wrong).
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEYup awesome, definitely a lot cleaner.
It could even be done via external theme js file and wp_localize_script.
One more suggestion, instead of targeting iframe with id
jQuery( "#content_ifr" )which will be different depending on editor id (scheme is $editor_id + ‘_ifr’), it would probably be better to usejQuery( '.mceContentBody' )class targeting, since it’s applied to all instances of TinyMCE.Also, maybe it would be worth thinking how to allow plugin developers to “opt-out” of your styling (if you will use class for targeting). That could either be done via exclusivity or (better) inclusivity (to target only default content editor and your own custom editors).
For example, you could only target iframes who have $editor_id either ‘content’ or ‘stargazer’ inside of it.
Such check would have to be inside js and would be pretty simple to accomplish.
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEOk edited and replaced with much better version, it prints in head instead of body (which was stupid of me) and you don’t have to prefix rules.
One more note, I check for editor id up there and bail out of id is not “content”, id used by default editor appearing on post edit screen.
You mentioned using wp_editor on frontend too so you might want to tweak that.
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCENote that you should prefix your all css rules with #tinymce since stylesheet is printed outside of iframe to.
There is a way around it though, give me a minute.
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEI managed to do it, it might need some more optimisation and checks but it works now:
function my_custom_editor_stylesheet( $editor_id ){ if ( 'content' !== $editor_id ) return; $bg_color = '#000'; echo '<div id="my_unique_stylesheet_id" style="display: none !important;">body { background: ' . $bg_color . '; }</div>'; echo ' <script type="text/javascript"> (function(){ var checkInterval = setInterval( function() { if ( typeof(tinyMCE) !== "undefined" ) { if ( tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden() ) { jQuery( "#content_ifr" ).contents().find( "head" ).append( "<style type=\'text/css\'>" + jQuery( "#my_unique_stylesheet_id" ).text() + "</style>" ); clearInterval( checkInterval ); } } }, 500); }()); </script>'; } add_action('media_buttons', 'my_custom_editor_stylesheet');Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEActually there is no other way around this but to use custom JS.
Only way you could print this in the iframe with only using PHP is either to use solution suggested above (creating actual css, which is not that great) or to hook into ‘the_editor_content’ and print ‘<style>’ there, but that would be bad solution because it could be deleted in text editor mode.
Forum: Hacks
In reply to: Custom/Dynamic CSS in TinyMCEThe third parameter of wp_editor takes editor settings. If you send a “editor_css” value, it will apply to the editor:
That won’t help, that is for printing css outside of iframe, you can’t use it for printing inside actual TinyMce iframe.
@justin are you ok with JS based solution for this?
Great plugin. I would suggest you to add shortcode for including buttons on any place we want.
Forum: Plugins
In reply to: [Grab & Save] [Plugin: Grab & Save] request: ability to name fileNo problem, just post here if you run into issues 😉
Forum: Plugins
In reply to: [Grab & Save] [Plugin: Grab & Save] request: ability to name fileHere you go Chris, I have altered the plugin for you.
https://dl.dropbox.com/u/20590482/Temporary/save-grab.zip
You have option to specify filename now. If you do not specify it, plugin wil work as usual, grabing filename from fetched image.
Send me email at [ email redacted ] if something is not working as it should.
OriginalEXE
Forum: Fixing WordPress
In reply to: Google Site Description in Chrome Warns About IE6Did not work -.- Anyone can help?