Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#481 2008-06-05 21:59:27
Re: hak_tinymce WYSIWYG article editor
Check out the content_css option. I normally import the original one into my stylesheet and then override what I want to change. Makes upgrading pretty painless.
Shoving is the answer – pusher robot
Offline
#482 2008-06-06 16:09:36
- volomike
- Member
- Registered: 2008-05-26
- Posts: 16
Re: hak_tinymce WYSIWYG article editor
Found the fix for the small font problem here:
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4654
Last edited by volomike (2008-06-06 16:09:52)
Offline
#483 2008-06-06 16:13:01
- volomike
- Member
- Registered: 2008-05-26
- Posts: 16
Re: hak_tinymce WYSIWYG article editor
There’s a problem with hak_tinyMCE that I’ve detected. It’s inserting text that is not aligned to the left margin like articles created before the hak plugin was installed. When investigating the XHTML, I found that the problem was that they didn’t include p tags after the divs marked entry-content.
Anyone know the way to hack the hak such that at least the entire content is wrapped in at least one p starting and ending tag?
Offline
#484 2008-06-06 16:27:31
- volomike
- Member
- Registered: 2008-05-26
- Posts: 16
Re: hak_tinymce WYSIWYG article editor
volomike wrote:
There’s a problem with hak_tinyMCE that I’ve detected. It’s inserting text that is not aligned to the left margin like articles created before the hak plugin was installed. When investigating the XHTML, I found that the problem was that they didn’t include p tags after the divs marked entry-content.
Anyone know the way to hack the hak such that at least the entire content is wrapped in at least one p starting and ending tag?
I found the fix. You have to edit the file:
textpattern/publish.php
Inside there, look for the function
populateArticleData
Now, right after that function title, change the line:
$out['body'] = $Body_html;
into this:
$out['body'] = '<p>' . $Body_html . '</p>';
Offline
#485 2008-06-06 16:36:11
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: hak_tinymce WYSIWYG article editor
Mmh… and then what happens with new articles that are already wrapped in p?
I think doing so you will have nested paragraphs in future articles. Maybe you better use some sql query directly in your db
Offline
#486 2008-06-06 17:48:00
Re: hak_tinymce WYSIWYG article editor
If you don’t insert a line break in TinyMCE the contents will not come out wrapped in paragraph tags. This has come up before on this thread. I wrote a save callback function that solves the problem.
Shoving is the answer – pusher robot
Offline
#487 2008-06-06 17:55:04
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
If you don’t insert a line break in TinyMCE the contents will not come out wrapped in paragraph tags. This has come up before on this thread. I wrote a save callback function that solves the problem.
Yes I too use your callback function (very useful BTW), but AFAIK it operates on saving an article while he is talking about articles already pubblished before installing the plugin… or I’m missing something?
Offline
#488 2008-06-06 17:56:34
Re: hak_tinymce WYSIWYG article editor
Maybe, that’s not what I understood from the message, but now I’m not sure.
Shoving is the answer – pusher robot
Offline
#489 2008-06-10 08:40:06
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: hak_tinymce WYSIWYG article editor
Hi,
I have used 0.7.4 hak_tinymce. On the text editor field, tables rows(all table property not displayed) i.e. 3row on text editor is missing.
What is my mistake?
Appreciate your kind help
Sheru
Offline
#490 2008-06-10 09:36:05
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: hak_tinymce WYSIWYG article editor
As far as I know the third row is not displayed by default but you can change it going to extensions->hak_tinymce.
Look for the fields “Initialization for article body editor” and “Initialization for article excerpt editor”, you’ll notice there is a “theme_advanced_buttons3 : “”,” row.
Here you can add the buttons you want to row 3.
Offline
#491 2008-06-10 10:02:59
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: hak_tinymce WYSIWYG article editor
Hi,
Thank you so much for your response.
redbot wrote:
Look for the fields “Initialization for article body editor” and “Initialization for article excerpt editor”, you’ll notice there is a “theme_advanced_buttons3 : “”,” row.
Here you can add the buttons you want to row 3.
I added as your suggestions..
theme_advanced_buttons3 : "tablecontrols",
don’t know what to be added here theme_advanced_buttons3 : “to add, to add”,
Could please help me?
But still, I am not getting table.
Thank you for your post and time
Sheru
Last edited by Sheru (2008-06-10 10:10:28)
Offline
#492 2008-06-10 10:22:33
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: hak_tinymce WYSIWYG article editor
Hi,
Thank you for giving right direction. Thanks a lot from my side.
It’s displayed now. Added stuffs are..
theme_advanced_buttons3 : "tablecontrols",
plugins : "searchreplace,txpimage,table", // added table
Once again thank you for helping me
Sheru
Offline