Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: hak_tinymce WYSIWYG article editor
Thanks.
I decided to add that at the last minute but I think it will prove really useful for those that want to customize. There a couple things I still want to move to the configuration panel, like the width and height of the editor and I want to try to figure out a way to allow for different configurations for the excerpt and the article editors.
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
How do I…
Search and replace my database in phpMyAdmin to globally replace the default “textile_body” and “textile_excerpt”?
Offline
Re: hak_tinymce WYSIWYG article editor
If you don’t have html in your pages this can give you pretty undesirable results. If all your documents where formated with textile you will loose line breaks and stuff like that.
That’s the problem that the Hide editor toggle when editing articles created with textile or convert linebreaks setting is supposed to prevent.
Shoving is the answer – pusher robot
Offline
#64 2006-02-09 21:23:08
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: hak_tinymce WYSIWYG article editor
I have a slight problem now.
With these settings:
admin -> preferences -> site preferences -> Use textile: leave text untouched
admin -> preferences -> advanced preferences -> Articles use excerpts?: no
This happens:
content -> write -> Error: Could not find the target element
Thanks for great work, btw.
Offline
Re: hak_tinymce WYSIWYG article editor
Granted HackJoon,
However I just used the import tool to bring in 200+ articles on a site, and I want to turn off textile for all of them (one category). Otherwise I have to page through them all. X(
Offline
Re: hak_tinymce WYSIWYG article editor
heikki: Let me look into that. I totally forgot about that setting. Shouldn’t be a very hard fix.
mrdale: This should do it.
update textpattern set textile_body= mode_number, textile_excerpt= mode_number
Set mode number to the textile setting you want
0 = Leave Text Untouched
1 = Use textile
2 = Convert linebreaks
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
Muchas Gracias Mr.Joon
I know I should read a sql manual or something but how would I restrict that to a category (foo)?
Last edited by mrdale (2006-02-09 22:08:21)
Offline
Re: hak_tinymce WYSIWYG article editor
Well basically just find the column you want the setting you want and add a where clause to the statement. So let’s say we want to set every article with category1 set to foo to “leave text untouched”
Category1 is the column in the textpattern table (this is where all your articles are stored) So just do.
UPDATE textpattern SET textile_body=0, textile_excerpt=0 WHERE category1='foo'
Just make the WHERE clause check for what you want (section, author, etc..)
The mySQL manual is actually pretty good for this. I have to say I’ve learned most of my SQL from it.
I did get to work with a REALLY good DBA for the past couple years which made me realize how little about SQL I know though.
Last edited by hakjoon (2006-02-09 23:09:57)
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
New update that should take care of heikki’s issue.
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
Thanks Joon. Did the trick, and I’ll rtfm now that I know which one.
Offline
#71 2006-02-10 08:05:58
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: hak_tinymce WYSIWYG article editor
Thanks, it works now.
Offline
#72 2006-02-20 05:11:38
- dododi
- Member
- Registered: 2006-01-14
- Posts: 17
Re: hak_tinymce WYSIWYG article editor
I just uploaded your plugin and update the tinymce folder and have noticed a bit of browser wierdness.
In Firefox 1.5.0.1 the format dropdown is missing and the styles dropdown is visible and the opposite for Except (styles hidden and format visible).
In IE 6 the format is visible but the style is hidden in the article and the reverse for Except.
Is this a known issue or just something to do with my installation.
Great plugin by the way.
Thanks,
Dododi
Offline
Re: hak_tinymce WYSIWYG article editor
The default initialization for the plugin does not have a styles dropdown (mostly because I haven’t figured out how to integrate it with TXP style sheets) so it does seem like something is acting weird with your install.
I would try re-installing first. Alternatively you could try using the 2.0.3 version that moxiecode just released (I swear every time I update my package they release a new version.)
The version I include is pretty vanilla except for the image plugin so i can help you get it upgraded properly if you want to do that.
Shoving is the answer – pusher robot
Offline
#74 2006-02-21 00:27:12
- dododi
- Member
- Registered: 2006-01-14
- Posts: 17
Re: hak_tinymce WYSIWYG article editor
Is there a thread/guide to installing it properly.
The process I used:
1) Renamed the old tinymce folder
2) Uploaded yours
3) “Deactivated textile
4) Activated TinyMCE
5) Installed “hak_tinymce.txt” into the plugins.
6) Activated “hak_tinymce.txt”
Is this the correct procedure or am I missing something?
Is there anything special i need to do with installing version 2.03?
Finally, is it possible to integrate the editor with “upm_image_popper”? Images will only appear if the editor is switched off. I assume this is normal and not something to do with my install.
Thanks
Offline
Re: hak_tinymce WYSIWYG article editor
That’s pretty much what you do. I’m not sure exactly what you mean by Activated TinyMCE.
- upload the tiny_mce folder into the textpattern folder, if you have a previous one remove it or rename it
- install ha_tinymce like any other plugin from the hak_tinymce.txt file
- activate it. That should be it. Anything else is optional.
About integrating upm_img_popper, right now that won’t work. The method that upm_img_popper uses to inster the code doesn’t play well with tinyMCE, also tinyMCE doesn’t like tags with colons so it won’t allow the <txp:upm_image /> I wnat to make an option that will make the XHTML insert from upm_img_popper work with tinyMCE but I don’t think it will ever like the <txp:upm_image /> tags. There is an image picker in the distribution though that will allow you to go through your image folder.
As far as updating to 2.0.3 (or any other dot release of 2.0)
- get the install from moxiecode
- From the zip upload the tinymce/jscripts/tiny_mce folder into your textpattern directory
- if you want to use the image picker copy the ibrowser folder from /tiny_mce/plugins in my zip into the new tiny_mce folder. That’s it.
The iBrowser plugin is the only thing in the regular tinyMCE install folder that is specific to TXP. Everything else is in the hak_tinymce plugin itself.
I’m still not sure why yours is acting all weird though. Are you using the default initialization form?
Also make sure everything works ok in the moxicode examples Some people have had issues with firefox extensions causing it not to work.
Last edited by hakjoon (2006-02-21 01:35:27)
Shoving is the answer – pusher robot
Offline