Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#196 2006-11-03 05:06:09
Re: hak_tinymce WYSIWYG article editor
Hak
Can’t for the life of me get the callback to work. Javascript error says “trim is not defined”
Offline
#197 2006-11-03 10:59:02
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 604
Re: hak_tinymce WYSIWYG article editor
I must be doing something wrong. I pasted the save_callback:“mceTagWrap”, into the Initialization areas for articles and excerpts and then added the mceTagWrap function code to the Callback functions area.
Now whenever I create a new article or edit an article all changes are wiped when I save it.
Offline
#198 2006-11-03 14:47:16
Re: hak_tinymce WYSIWYG article editor
Oh shoot! right I had to write trim(). It’s not a native function. One minute.
Shoving is the answer – pusher robot
Offline
#199 2006-11-03 15:05:04
Re: hak_tinymce WYSIWYG article editor
Hold there are some issues with the callback saving also for some reason iit’s stripping half of teh function I need to look into that.
Shoving is the answer – pusher robot
Offline
#200 2006-11-03 15:51:32
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
Hold there are some issues with the callback saving also for some reason iit’s stripping half of teh function I need to look into that.
Yeah, I noticed it was doing this so I used phpmyadmin to put the function directly into the DB. FYI.
-Cheers
Offline
#201 2006-11-03 16:04:02
Re: hak_tinymce WYSIWYG article editor
Actually, that got me thinking… would there be any way to make a init function that simply selects paragraph from the popup on load? Might be simpler…
-Just a thought.
Offline
#202 2006-11-03 17:24:59
Re: hak_tinymce WYSIWYG article editor
I haven’t tried affecting the select itself. Not sure if that will catch or not. They are working on an update for TinyMCE that will check for an initial block so this hopefully will go away in a future release.
In the meantime, 0.6.3 and an updated Paragraph wrap callback for TinyMCE which actually has a slightly better function, which will catch blocks opening and ending with open tags.
0.6.3 also updates the toggle editor link to fit better with 4.0.4, not sure how it will look on 4.0.3. If someone really needs one for 4.0.3 let me know. Although you should all upgrade
Shoving is the answer – pusher robot
Offline
#203 2006-11-03 17:54:30
Re: hak_tinymce WYSIWYG article editor
Thanks Hak. Mad props.
Worksa likea charm.
Offline
#204 2006-11-28 20:16:29
Re: hak_tinymce WYSIWYG article editor
Just wondering what the status on having a txplink link tool added to allow file downloads is?
Or any new features/versions coming up.
Offline
#205 2006-11-28 21:27:09
Re: hak_tinymce WYSIWYG article editor
Sorry fellas between looking for a job, getting a new house setup and upgrading textbook I haven’t had much time to work on this. Hopefully I can get back into it shortly.
These are the plans for the next version.
- Bring the bundled TinyMCE up to the latest version
- Include the ability to use the compressor script (I still need to figure out exactly how it works)
- Linking plugin, tied to backend.
Future versions, or pipe dreams. I don’t even know if some of these are possible.
- Allow
<txp:/>tags. Don’t know how I’m going to do this, since the issue is a TinyMCE limitation. Also not sure how to represent them to the user. If anyone has any thoughts please post them, specially on the presenting the tags to users issue. - Ability to convert the article into Textile prior to saving. Again just something I would love to see, don’t know if it’s possible.
If there is anything else anybody wants please post them and I can see if I can get it in the next version.
Shoving is the answer – pusher robot
Offline
#206 2006-11-28 23:45:02
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 604
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
Allow
<txp:/>tags. Don’t know how I’m going to do this, since the issue is a TinyMCE limitation. Also not sure how to represent them to the user. If anyone has any thoughts please post them, specially on the presenting the tags to users issue.
Do you have any idea how much I’d love it if you could accomplish this? I’ve been dying to insert bas_lightbox images directly into an article. For now I’ve had to resort to complex workaround using if_article_id.
Last edited by Algaris (2006-11-29 09:41:35)
Offline
#207 2006-11-29 01:05:19
Re: hak_tinymce WYSIWYG article editor
Alowing txp tags would be cool. In the meantime is it possible to do both of the following at once;
- Have “leave text untouched” and
- Disable tinyMCE on a per article basis
I’m running into some challenges when using tinyMCE with the Postmaster plugin. I’ve found you can disable tinyMCE via the checkbox in the write tab. Then include your tag. But on reload the editor toggles back on.
Thanks again Hak.
Offline
#208 2006-12-01 14:54:48
Re: hak_tinymce WYSIWYG article editor
First of all… Great plugin, and great coding…
but looking at your code, it seems that on install the plugin will generate the “txp_hak_tinymce” table with prefix, like this:
safe_query("CREATE TABLE `".PFX."txp_hak_tinymce` ...")
But on uninstall the PFX is omitted!
Your code:
safe_query("DROP TABLE txp_hak_tinymce")
Shouldn’t this instead be:
safe_query("DROP TABLE ".PFX."txp_hak_tinymce")
Normally it wouldn’t be a problem, but if a user has installed multiple textpatterns in the same database… I am sure you get my point.
Last edited by Psilo (2006-12-07 04:13:24)
Never make the same mistake twice… there are so many… try a new one each day!
Offline
#209 2006-12-01 19:42:13
Re: hak_tinymce WYSIWYG article editor
Yup that’s definitely a bug. Thanks for catching that.
@mrdale: I can’t think of anyway to do that without either tracking each article in another table or using a custom field to store the info. I could modify the txp_article table but I don’t like changing the default stuff if I can help it.
Ideally I would love to store tinyMCE as a new mode so you would have Textile, convert Line Breaks, Leave Text untouched and TinyMCE. Last time I looked at it there was now way to plug in there yet. I’ll have to take a look again.
Shoving is the answer – pusher robot
Offline
#210 2007-01-10 01:47:46
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: hak_tinymce WYSIWYG article editor
for some clicks hak_tinymce seemed to work fascinating well, and was so easy to use, but as i combined bold formatting with an h3, and then saved an article, i got the following message:
- – - – - – - – - -
Warning:
Error: ‘’ is not an integer
assert_int()
textpattern/include/txp_article.php:161 array_map()
textpattern/include/txp_article.php:51 article_save()
textpattern/index.php:104 include(/is/htdocs/wp1063585_7QOZ6IORXU/www/textpattern/include/txp_article.php)
in /is/htdocs/wp1063585_7QOZ6IORXU/www/textpattern/lib/txplib_misc.php on line 1842
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ LastMod = now(), LastModID = ‘uli’, Section = ‘’ at line 8 update textpattern set Title = ‘Home’, Body = ‘
[text to be displayed on the page, formatted partially]
in /is/htdocs/wp1063585_7QOZ6IORXU/www/textpattern/lib/txplib_db.php on line 84- – - – - – - – - – - – - -
when i now uninstall the plugin, this message keeps appearing after saving an article, which won’t calm my client. Is his database corrupted now or is there any possibility to get txp to work properly?
edit
not just uninstalling but completely removing the plugin from the plugins panel solved the problem.
does anybody have a hint how to get this great plugin to work for me?
Any help is greatly appreciated as my client wants an easy and code free way of formatting.
Last edited by uli (2007-01-10 02:26:46)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline