Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2006-02-09 15:05:46

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

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

#62 2006-02-09 17:33:39

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#63 2006-02-09 20:33:34

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

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

#65 2006-02-09 21:52:56

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#66 2006-02-09 22:02:25

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

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

#67 2006-02-09 22:06:16

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#68 2006-02-09 23:09:29

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

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

#69 2006-02-10 01:38:38

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

Re: hak_tinymce WYSIWYG article editor

New update that should take care of heikki’s issue.


Shoving is the answer – pusher robot

Offline

#70 2006-02-10 07:20:13

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

Board footer

Powered by FluxBB