Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#697 2009-12-09 23:55:39

linkstate
New Member
Registered: 2009-12-09
Posts: 2

Re: hak_tinymce WYSIWYG article editor

I have few problems to run this properly. Finally I’ve managed to get image pickup working. Here is some info if you deal with something similar.

1. problem – for me image pickup (ajax requests) doesn’t work on http://domain.com but on http://www.domain.com is working.

wokaround – work only on www.domain.com

2. problem – IE and 1px width images was because in source I had thumbnail width=”“, FF handle this but IE not.

solved – upgrade to 4.2.0 brings us thumnail width and height numbers to db (and this hak_tinymce plugin takes it from there), check your txp_image table in db. If you have 0 width height use plugin soo_thumb_atts for filling thumbnail width, height numbers in db (new thumbnails under 4.2.0 are filled properly).

Offline

#698 2009-12-10 00:37:11

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

Re: hak_tinymce WYSIWYG article editor

@linkstate: glad you got that worked out. the domain thing is a general javascript issue. I might explore at some point seeing if I can make that use a relative path.

@wet: This works for me to allow all txp tags

 extended_valid_elements:"txp*[*]",
custom_elements:"txp:\\S+",

there is no visual feedback that the tag is there. if you want to get something you can do some fancy css generated content stuff (IE6 won’t do this, I’m not sure about IE7). Specify a stylesheet for the content_css property and in it put:

div[mce_name]:before {
content:"<" attr(mce_name) ">";
}

div[mce_name]:after {
content:"</" attr(mce_name) ">";
}

this will show you the tag you inserted. BTW the tags seem to get converted to open and close tags so <txp:image /> becomes <txp:image></txp:image>

Last edited by hakjoon (2009-12-10 00:40:31)


Shoving is the answer – pusher robot

Offline

#699 2009-12-10 01:37:37

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: hak_tinymce WYSIWYG article editor

I installed 9.8 with TXP 4.2, and am getting this error:

“Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 26 The above errors were caused by the plugin:hak_tinymce.”

I saw tRM had the same issue a few pages back, but I don’t see whether or not it was resolved.


http://www.patrolmag.com

Offline

#700 2009-12-10 02:22:43

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

Re: hak_tinymce WYSIWYG article editor

@davidsess: Are you using php 4?

Nevermind I can recreate it in php4, due to the method visibility properties. I forgot that wasn’t there in php 4.

0.9.9 works in php4 so this should hopefully fix tRM’s problem too.

oh and @wet this has the numeric entity encoding in the default init as well.

Last edited by hakjoon (2009-12-10 02:44:10)


Shoving is the answer – pusher robot

Offline

#701 2009-12-10 07:54:58

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

BTW the tags seem to get converted to open and close tags so <txp:image /> becomes <txp:image></txp:image>

Thanks, this is a nice workaround for the limited tag capabilities I need right now. Nevertheless, I’ve just discovered the codeprotect tinyMCE plugin. Exploring…

Offline

#702 2009-12-10 15:31:22

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: hak_tinymce WYSIWYG article editor

Dammit. I just upgraded to PHP5 in hope that would fix it. Now I’m seeing errors on the left side of the article page, where the “Toggle Editor” link should be.

I will install 9.9 today and see what happens.


http://www.patrolmag.com

Offline

#703 2009-12-10 15:48:57

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

Re: hak_tinymce WYSIWYG article editor

@davidsess: Did you run the install through the extensions->hak_tinymce tab? You’ll get some errors there if you haven’t installed the plugin table, it’s supposed to do it in the background but I’ve got some logic missing somewhere.

I need to figure out how to use the new plugin install/uninstall events.


Shoving is the answer – pusher robot

Offline

#704 2009-12-10 16:01:42

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: hak_tinymce WYSIWYG article editor

I deleted everything and uninstalled the old version. Now it won’t even show up in the extensions tab … anytime I have the plugin activated, the errors are showing up.


http://www.patrolmag.com

Offline

#705 2009-12-10 16:03:58

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

Re: hak_tinymce WYSIWYG article editor

What are the errors?


Shoving is the answer – pusher robot

Offline

#706 2009-12-10 16:05:52

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: hak_tinymce WYSIWYG article editor

This is what I see in place of the “Toggle Editor” link on the left side of an article editor:

Warning: Table ‘ccmpatrol.txp_hak_tinymce’ doesn’t exist select pref_name, pref_value from txp_hak_tinymce where 1=1 in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_db.php on line 85

Warning: extract() [function.extract]: First argument should be an array in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 28
Advanced Options

Warning: Table ‘ccmpatrol.txp_hak_tinymce’ doesn’t exist select pref_name, pref_value from txp_hak_tinymce where 1=1 in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_db.php on line 85

Warning: extract() [function.extract]: First argument should be an array in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 84

Notice: Undefined variable: hide_textile_select in /var/www/vhosts/patrolmag.com/httpdocs/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 87


http://www.patrolmag.com

Offline

#707 2009-12-10 16:11:13

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: hak_tinymce WYSIWYG article editor

Okay, now I’m getting an Extensions tab, but it’s showing me the preferences as if it’s already installed (so no chance to run the script.)


http://www.patrolmag.com

Offline

#708 2009-12-10 16:41:50

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

Re: hak_tinymce WYSIWYG article editor

There is an uninstall button at teh bottom of the preferences tab that will destroy the table.

I’m not exactly sure how this happened but it seems that table being created and the table being queried are not the same. If you can check the DB with phpmyadmin or something this might help.

Is “ccmpatrol” the table prefix?


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB