WordPress.org

Ready to get started?Download WordPress

Forums

How to use php plugins and WYSIWYG editors together? (3 posts)

  1. tinem
    Member
    Posted 7 years ago #

    I use exec-php and are happy for this plugin but the problem is that I can't use WYSIWYG editor and if I choose to use it AFTER I have made the Post/Pages the php code disappear.:-(

    Is there some way to use php code and WYSIWYG editors together? And what do you do for your customer to make changes/updates to their Post/Pages if they can't see a good editor showing their content in the pages?

  2. harknell
    Member
    Posted 7 years ago #

    It is possible to add a Visual Editor to a plugin to use, but that is done at the coding level (so the plugin needs to be altered). I recently did it with 2 of my plugins. The only way to do code is to switch from the Visual Editor to the code editor. While you won't see the code in the Visual Editor, it's still there if you added it in the code editor. There isn't a Visual/Code editor out there that I know of that gracefully accepts code and can simply visually add things to your post--I suspect they would battle each other and not work very well.

    Anyway, if you want to take a crack at adding the Visual editor to your plugin I'd suggest grabbing my AWSOM News Announcement plugin and look at how the Visual Editor was added. It's not too hard really. You just need to add some Javascript references.

  3. sniffernet
    Member
    Posted 6 years ago #

    Here is the solution for 9 months of nothing.. I just did it. It's the initial version but works.

    I will improve it tomorrow.

    Download it: http://wysiwyg-php.sniffer.net/

    My PuTTY bash prompt Theme page http://elite4putty.sniffer.net and my webpage http://www.sniffer.net/

    Best wishes,
    Bruno Ratnieks

Topic Closed

This topic has been closed to new replies.

About this Topic