Inserting Editor table into WordPress page?
Inserting Editor table into WordPress page?
Hi Allan,
EDIT: Should also throw out there that I'm using the latest jQuery build (2.0.3).
I'm trying to insert an Editor table into a WordPress page (seen here: http://dcturanoinc.com/blog/contacts), and I'm running into the following error: TypeError: f[("editor_" + c)] is undefined
Here's what I've done so far:
1. Created a table in MySQL and edited the login info into config.php
2. Used "wp_enqueue_script" to load the necessary JS files (jquery, datatables, editor, and tabletools)
3. Used "wp_enqueue_style" to load the necessary CSS files
4. Pointed "ajaxUrl" to the correct PHP directory
5. Inserted this table into my page:
[code]
Contact
Company
Email
Phone
Fax
Tax ID
Address
[/code]
I uploaded the Generator-created files to my site and the table worked successfully through the generated HTML file, but when I try to insert the table onto a WordPress page, that error occurs. Could you possibly point me in the direction of where I might be going wrong?
EDIT: Should also throw out there that I'm using the latest jQuery build (2.0.3).
I'm trying to insert an Editor table into a WordPress page (seen here: http://dcturanoinc.com/blog/contacts), and I'm running into the following error: TypeError: f[("editor_" + c)] is undefined
Here's what I've done so far:
1. Created a table in MySQL and edited the login info into config.php
2. Used "wp_enqueue_script" to load the necessary JS files (jquery, datatables, editor, and tabletools)
3. Used "wp_enqueue_style" to load the necessary CSS files
4. Pointed "ajaxUrl" to the correct PHP directory
5. Inserted this table into my page:
[code]
Contact
Company
Phone
Fax
Tax ID
Address
[/code]
I uploaded the Generator-created files to my site and the table worked successfully through the generated HTML file, but when I try to insert the table onto a WordPress page, that error occurs. Could you possibly point me in the direction of where I might be going wrong?
This discussion has been closed.
Replies
[code]
[/code]
Could you try swapping those two around please? Editor should work just fine without TableTools (I'm not sure why it is giving an error there - it shouldn't be, but I think that's a little bit of a red herring. If you load TableTools first, then Editor can extend it.
Regards,
Allan