Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2006-07-10 19:19:58
Re: hak_tinymce WYSIWYG article editor
Hakjoon, please, can you tell me how to in the easist way disable tiny_mce for ALL excerpts. I need tiny_mce only for the body…
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#137 2006-07-10 21:13:12
Re: hak_tinymce WYSIWYG article editor
eeek that one’s not easy. Even with the update I’m making it won’t be easy since there isn’t a global textile toggle just for excerpts.
I can add another admin switch to determine which of the editing areas to allow triggering the editor for but I can’t think of another way of doing it.
Let me see how involved that is to add I was about to release the update tonight.
Shoving is the answer – pusher robot
Offline
#138 2006-07-10 22:23:31
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
I was about to release the update tonight.
Oh wow that would be awesome. It would really help me out on a few projects I’m working on.
I was going to ask when to expect an update, now I know my answer :D
Offline
#139 2006-07-10 23:08:47
Re: hak_tinymce WYSIWYG article editor
New in this update:
- Updated to TinyMCE 2.0.6.1
- New options to set Init strings for Article and Excerpt in admin panel
- New image browser
- Option to create callback functions in Admin panel
- Option to hide “Use Textile” dropdowns
- Option to enable/ the editor for Article body or Excerpt
- Move to new preferences table
- TinyMCE code can now be anywhere in the document root
There is a new preferences table. Basically after activating the plugin go to Extensions -> hak_tinymce and click the install button. If you had a previous installation it will migrate your settings (well it should anyway).
No need to have a form for the initialization. It is managed right in the admin panel now. I think the default install is a bit better too. And font tags are now turned off by default
There is also a new image browser plugin. It’s a version 0.1 so I appreciate any feedback. Hopefully you all will like it, or else I’ll cry. Ok I won’t, I’ll just have to come up with something better.
TinyMCE 2.0.6.1 has a spell checker plugin for anyone wanting a spell checker, also the language files are a separate download now, by default it only comes with english. Downloads page
And I beztak’s options in. Ended up being fairly easy.
Please be aware that the new installation will alter your database, so beware, have backups, all that fun stuff. It shouldn’t mess anything up but better safe then sorry.
Shoving is the answer – pusher robot
Offline
#140 2006-07-11 00:10:16
Re: hak_tinymce WYSIWYG article editor
Upgraded and everything seems to be running smoothly. new image browser seems to work well.
I haven’t tested a lot but so far so good.
Much improved over earlier versions.
Thanks a lot for this. This makes making client sites 100% easier at least.
Offline
#141 2006-07-11 07:12:13
Re: hak_tinymce WYSIWYG article editor
Patrick, this update is really cool!
I like your image browser: Would it be possible to have an “Insert as article image” button, too?
Nils
Offline
#142 2006-07-11 08:24:17
Re: hak_tinymce WYSIWYG article editor
Hakjoon, thank you very much indeed, it’s awasome…
I have one idea for improvement: Possibility to view two checkbox (body and excerpt) on default. Because I use them instead of HTML button… So now I have to hardcode your plugin. But as I said it’s just idea… I just replace this code in function hak_tinyMCE()
display:none
with
display:block
And about image browser: In my case doesn’t work, I have to play around with it. Maybe it’s my faoult.
Thank you Hakjoon for your hard work.
Last edited by beztak (2006-07-11 08:51:08)
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#143 2006-07-11 08:57:41
Re: hak_tinymce WYSIWYG article editor
Here is my error report:
Use of undefined constant TXP_DEBUG – assumed ‘TXP_DEBUG’ in e:\webroot\hotel-trebon\textpattern\lib\txplib_db.php on line 50
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#144 2006-07-11 12:24:31
Re: hak_tinymce WYSIWYG article editor
beztak wrote:
I have one idea for improvement: Possibility to view two checkbox (body and excerpt) on default. Because I use them instead of HTML button… So now I have to hardcode your plugin.
I’ve thought about this, having to hit the toggle link is really just a left over from the original version micampe released. Let me see about adding the option. It should be pretty easy and you are right it is a nuisance to have to hit the link first.
I’m confused about your error with the image browser since I never explicitly call TXP_DEBUG so it must be the query functions that are triggering something odd. Are you using 4.0.3 or the code in SVN?
if you go to
http://your-domain/textpattern/index.php?event=hak_txpimage
and
http://your-domain/textpattern/index.php?event=hak_txpcatselect
Do you get the same error message? Any more information by any chance? These are the events that get called by the image browser.
Shoving is the answer – pusher robot
Offline
#145 2006-07-11 12:27:32
Re: hak_tinymce WYSIWYG article editor
Skubidu wrote:
Patrick, this update is really cool!
I like your image browser: Would it be possible to have an “Insert as article image” button, too?
Nils, not sure how involved that would be to implement since it would have to talk back to the opening page in a different way (not through TinyMCE) but it seems doable.
I probably just need to get a little more acquainted with TinyMCE.
Shoving is the answer – pusher robot
Offline
#146 2006-07-11 12:29:48
Re: hak_tinymce WYSIWYG article editor
Hi Patrick!
There is a problem with the image path: Everythings looks fine in the admin interface, but on the live page the image is inserted with a relative path. It should be an absolute one otherwise you can’t see the image in an article.
Nils
Offline
#147 2006-07-11 13:10:52
Re: hak_tinymce WYSIWYG article editor
Nils,
Do’h I only tested the relative paths on the home page.
Add this to your initializations and you should be in business.
bc..
relative_urls : false,
remove_script_host : false,
If anyone wants different URL schemes please check out this TinyMCE FAQ on the URL rewriting options. You should be able to get whatever you want out of it.
document_base_url is automatically setup to be your Site URL so you shouldn’t have to worry about that element.
Shoving is the answer – pusher robot
Offline
#148 2006-07-11 14:04:38
Re: hak_tinymce WYSIWYG article editor
Works like a charm! Thanks!
Offline
#149 2006-07-11 14:06:59
Re: hak_tinymce WYSIWYG article editor
So, I use TXP 4.0.3 and here is the screen of mistake on my localhost:

On website doesn’t appear same mistake but in Javasript console in Firefox was this:

So even on website is not selected image insert into editor :( because of javascript error. I try to disable all other plugins, but nothing happen…
Last edited by beztak (2006-07-11 14:08:47)
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#150 2006-07-11 14:37:05
Re: hak_tinymce WYSIWYG article editor
Aha, that’s the old iBrowser plugin. That one doesn’t work anymore. They changed a bunch of stuff between TinyMCE 2.0.2 and 2.0.5 which broke it and it’s no longer maintained.
There is a new one now, here are the initialization changes to enable it.
In the plugins parameter remove ibrowser and replace it with txpimage
In the toolbar buttons remove ibrowser and replace it with image The default location is in theme_advanced_buttons2
That should let you see the new image tool.
Shoving is the answer – pusher robot
Offline