Buy Now
Sign in

Broken Javascript

jpurlings , April 03 at 14:27
J
jpurlings
Hi,
Use the Javascript below to ad the TinyMCE editor to chronoforms fileds. But it causes a broken Javascript. Can you tell me what causes this? Because of the broken Javascript other javascipts plugins don't work at the form page.
Thank you:
The Javascript which I put in a 'Load Javascript' element is:
<?php​
​$doc->_('editor');​
​?>​
​jQuery(document).ready(function(jQ) {​
​ tinymce.init({​
​ mode : "exact",​
​ elements : "Activities,Partners,Resources,Proposition,Relationship,Channels,Segments, Costs, Revenues",​
​ width : "100",​
​ template : "modern",​
​ selector: "textarea",​
​ menu : "false",​
​ plugins : "preview textcolor link image insertdatetime media hr charmap",​
​ toolbar : "bold italic | forecolor backcolor | bullist numlist | preview | charmap", ​
​ insert_button_items: "image link",​
​ resize: "false"});});
GreyHead
Hi jpurlings ,
What is the JavaScript error message(s) that you see?
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
J
jpurlings
Hi Bob,
This is the error message in Google Console:
tinymce.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #​
​ at Function.o.error (tinymce.min.js:2)​
​ at u (tinymce.min.js:2)​
​ at b (tinymce.min.js:2)​
​ at o (tinymce.min.js:2)​
​ at c.select (tinymce.min.js:3)​
​ at c.o (tinymce.min.js:9)​
​ at i (tinymce.min.js:2)​
​ at m (tinymce.min.js:2)​
​ at o (tinymce.min.js:2)
Greetings.
GreyHead
Hi jpurlings,
Sorry, I have no idea. If you post or PM a link to the form page I can take a quick look to see if I can spot any other clues.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
J
jpurlings
Hi Bob,
Sorry fot the late reply. On order to see the page with the form with the broken javascript, you need an account. I want to setup an account for you, for that I need an email address. Can you give me one I can use?
Greetings.
J
jpurlings
Hi Bob,
I made an account for you at BizzAccelerator.biz, so you can log in backend and look what is happening. The broken Javascript occurs in the form BusinessModel, the code is in the setup tab a 'On page2', first 'Load Javascript' element. I hope you can fix it! I am in need of it...
I will PM the credentials to log in.
Thank you.