Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1081 2012-10-09 03:24:27

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Texpattern version?


Shoving is the answer – pusher robot

Offline

#1082 2012-10-09 03:56:00

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

TextPattern version 4.0.3 (r1188)

Offline

#1083 2012-10-09 12:35:49

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

That version is too old. The plugin currently requires 4.2.0 or higher. It uses pluggable_ui which was introduced then.

I might have an older version around but it is built against an older version of tinymce.

Last edited by hakjoon (2012-10-09 12:44:59)


Shoving is the answer – pusher robot

Offline

#1084 2012-10-09 15:23:28

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

If you’ve got an older version, yes, please let me know where I can get it.
Thanks.

Offline

#1085 2012-10-09 15:54:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: hak_tinymce WYSIWYG article editor

I think it was the first TXP plugin ever I downloaded. (Complete set of files in zip.)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1086 2012-10-09 18:31:14

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

The saga continues…
I just realized I was installing the plugin on the OLD site (hence the outdated TextPattern version). I’m now installing on my new site (v 4.4.1 (r3575)).

Here we go again:
- It installed okay and found the script in the extension preferences
- Browsing to the script shows the javascript.
- I now DO see a reference to the tiny_mce.js script on the page
- I now see “Toggle Editor” control on the upper left, which I don’t think was there before. Two checkboxes. Checking them has no effect.

- I am getting some console errors :

#1:
TypeError: $(“form.async”).on is not a function
$(‘form.async’).on(‘click’, ‘input[type=submit]’, function (evt) { index….ymce_js (line 82)

#2:
CSS Usage: initializing extensions”

Any suggestions?

Offline

#1087 2012-10-09 18:43:48

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Current version has hooks to fix some issues with the new ajax saving in 4.5 I wouldn’t have expected it to error in 4.4.

I’ll have to look into that. I can build an older version and make it available if a fix is not quick.


Shoving is the answer – pusher robot

Offline

#1088 2012-10-10 15:46:57

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

How soon do you think you’ll know?

Offline

#1089 2012-10-10 19:04:17

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

I’m going to try and get a new version up tonight, but:

If you want a quick patch, edit the plugin in the admin and replace

 $('form.async').on('click', 'input[type=submit]', function (evt) {
        tinyMCE.triggerSave();
 });

with this

 if $('form.async') {
    $('form.async').on('click', 'input[type=submit]', function (evt) {
        tinyMCE.triggerSave();
    });
 }

or upgrade to 4.5.


Shoving is the answer – pusher robot

Offline

#1090 2012-10-10 19:14:23

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

Thanks for the tip. Hmm, but I’m still getting an error. I added your changes and am now getting this:

SyntaxError: missing ( before condition :

if $(‘form.async’) {

index….ymce_js (line 83, col 4)

The line it’s referring to is the one we replaced.

Offline

#1091 2012-10-10 19:32:34

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

oops sorry I had a typo, been doing too much python. This is what you want

 if ($('form.async')) {
    $('form.async').on('click', 'input[type=submit]', function (evt) {
        tinyMCE.triggerSave();
    });
 }

Shoving is the answer – pusher robot

Offline

#1092 2012-10-10 19:37:30

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

New error this time:

TypeError: $(“form.async”).on is not a function

$(‘form.async’).on(‘click’, ‘input[type=submit]’, function (evt) {

This is very strange…

hakjoon wrote:

oops sorry I had a typo, been doing too much python. This is what you want

 if ($('form.async')) {
    $('form.async').on('click', 'input[type=submit]', function (evt) {
        tinyMCE.triggerSave();
    });
 }

Offline

#1093 2012-10-10 19:49:31

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Make sure your cache refreshed unless the jquery version is off or something.

Either way you can actually just remove that whole block since its only there for 4.5 (should have just suggested that first)


Shoving is the answer – pusher robot

Offline

#1094 2012-10-10 19:59:20

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

Cool! It works now, thank you.

I got a 400 Bad Request error when I opened the editor, but it still seems to work.

Much appreciated!

Offline

#1095 2012-10-11 22:27:57

Quimbly
Member
Registered: 2012-07-12
Posts: 22

Re: hak_tinymce WYSIWYG article editor

Next issue:
I want to include some of the advanced controls in the toolbars. For example, the ‘table’ control.

Here’s what I’ve tried:

theme_advanced_buttons3 : "formatselect,separator,table,tablecontrols",

The format-select control is showing, but instead of the table control, I’m just getting separators.

I’m trying to find good documentation for TinyMCE here, but I’m have difficulty.

Any suggestions?

Offline

Board footer

Powered by FluxBB