Breaking QuickTags
-
First of all, thank you for building this fantastic plugin! It is very much needed. Indeed I intend to have a published list of Recommended Plugins for the users of my plugins—under the name AddFunc.
Unfortunately, HTML Editor Syntax Highlighter breaks the QuickTags in one of my plugins (AddFunc Adaptive Content), so I can’t recommend it until that is fixed. My plugin uses the standard method of implementing QuickTags, so there isn’t anything practical that I can do from my end. I think you have a fundamental issue with how you’re inserting your buttons and dropdown menu, as other plugins (per this ticket) are breaking from your’s as well. I looked at your un-minified hesh.dev.js and it looks like you’re adding the default WordPress QuickTags back into the editor, which would explain why those ones still work. Of course, to make other QuickTags work, you can’t include every QuickTag from every other plugin and theme in the WordPress repository in your script, obviously.
So a far better solution would be not to interfere with how the QuickTags are added and to simply insert your own using the standard method. Or if that wouldn’t work (since your buttons need to do more that standard QuickTags do), insert your buttons outside of the editor altogether, maybe just hide it with CSS when Visual mode is selected. I think you’ll find that this will fix a good handful of the support tickets you have.
But that’s just my idea of a workable approach, and naturally you know your plugin better than I do. Please see what you can do to enable this great plugin to allow any and all standardly implemented QuickTags to function properly.
https://www.ads-software.com/plugins/html-editor-syntax-highlighter/
- The topic ‘Breaking QuickTags’ is closed to new replies.