Support » Plugins » How to use php plugins and WYSIWYG editors together?

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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:

    My PuTTY bash prompt Theme page and my webpage

    Best wishes,
    Bruno Ratnieks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use php plugins and WYSIWYG editors together?’ is closed to new replies.