Board Thread:Support Requests - Getting Technical/@comment-3279487-20130816151810

Hi, I've implemented the preload template function from Harry Potter wiki. That script uses this function to insert the template code at the cursor's position:

I didn't noticed immediately, but if you have the visual editor enabled this function doesn't work. And I don't mean it doesn't work with the visual editor, but that it doesn't work in source mode if the visual editor is enabled. Just try it out on Harry Potter Wiki. Apparently this is due to the function was created on a wiki which didn't have the visual editor enabled globally.

Can someone find a fix for this? Thanks. 