Forum Replies Created

Viewing 8 replies - 166 through 173 (of 173 total)
  • this is even faster and gives the same results (only with this the textarea gets the default name&id content):
    <?php the_editor( 'CONTENT TO EDIT' ); ?>

    You should probably also insert if ( user_can_richedit() ) wp_enqueue_script('editor'); but as far as I can see that should be in a file that’s like page-new.php (in wp-admin, requiring admin-header.php).
    So far I haven’t been able to get the full tinymce editor with placing that code somewhere else in the page (not developing a plugin with a page like the one I mentioned, so I’m not sure if that works).

    Could you be more specific in where you would like to add it?

    Would you like to add it to a Page/Post in the admin-section (so you can use it there for a specific plugin or something like it), do you want to add it to every page (which would mean you’d have to edit your theme-files) or do you want to be able to have the javascript added to one page/post and not the other (which would mean you should use the custom-fields, my favourite plugin for that is more-fields).

    a) it is most definitely possible and b) right here ??

    <?php wp_print_scripts( 'quicktags' ); ?><script type="text/javascript">edToolbar();</script>
    <textarea name="TEXTAREA" id="TEXTAREA" rows="10" cols="50"></textarea>
    <script type="text/javascript">var edCanvas = document.getElementById('TEXTAREA');</script>

    That should give you the default buttons for the tinymce editor.

    You could also try the plugin more-fields. That plugin has been a lifesaver for me for a few times now ??

    I’ve got the same issue with v2.6.1. Haven’t tried if it applies to all drafts, but I do know that it applies to drafts that were published once and have been ‘transformed’ into a draft again..
    I know that that might be useful to some, but I have them as a draft for a reason (to not show up on my site yet), but that obviously doesn’t work as it should..

    Anyone else still having this issue?

    I’ve hacked an older version of more-fields to work with multiple editors. Does need the fck-editor plugin though (tried it with the tinymce editor, but didn’t get that to work).

    Well, I’ve been looking in the forum for a few hours now and have tried every ‘hack’ that was mentioned, but unfortunately none of them worked for me..
    It looks like, in your case, you could edit the code directly in the database (in my case, the p tags aren’t shown in the database…) and you could edit it there.

    If I’m not mistaken, this bug has been around since v2.0 or v2.1. I’ve commented every line in the wpautop function (formatting.php), except the first line. Also edited a file in the tiny_mce directory (got that idea from somewhere around here), but unfortunately nothing works for me..

    Oh right, I even downloaded a plugin to disable the wpautop function (didn’t work and after that I tried commenting lines inside the function). I’ve already got the visual editor disabled since the beginning and I don’t allow WordPress to auto-correct xhtml.
    I haven’t got a clue on where to search next, but I do know I’m getting soar eyes and a headache of staring at my screen for so long..

    Hope you’ll find the answer though, if you do, please post it here ??

    If you want to use PHP in your pages/posts, just download the Exec-PHP plugin and activate it. With this plugin you’re able to use PHP-code (with the regular php-tags, not those you’ve mentioned).

    Works like a charm for me!

Viewing 8 replies - 166 through 173 (of 173 total)