Summernote Insert Text is not A function error

Hi All

. I am creating an app which give the user the functionality to create various templates and insert speicified field into the template which will then dynamically create a series of documents. I’m using <<?FIELDNAME?>> then do a replace with Text from the Db. I am using the insert text function into Summernote.


I’m sure I’ve used this function before in V5.8 but since I upgraded to 6.3 I can’t get it to work now.
When I use it I’m getting the following error

image
Anyone got any Ideas?

Thanks