Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#541 2009-03-13 16:59:31

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

Re: hak_tinymce WYSIWYG article editor

@debegray: I don’t know what could be causing that. I’ve never run into that before. Maybe check in the TinyMCE forums?

@mrtunes: the configuration is done through the extensions menu. You can get all the options from the tinyMCE documentation site.


Shoving is the answer – pusher robot

Offline

#542 2009-03-14 00:12:34

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: hak_tinymce WYSIWYG article editor

I noticed that if you write something short in the TinyMCE that doesn’t require hitting the return key, then no default markup is applied to that content. Is there a way to force even short content to be wrapped in a custom element, i.e., a <p>? Everything goes right if you press return once, but sometimes client don’t do it.

I know that this can be repaired directly in txp forms with a bunch of php, but maybe someone knows if there is a tinyMCE setting to do this.

Z-

Offline

#543 2009-03-14 00:20:11

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: hak_tinymce WYSIWYG article editor

Zanza wrote:

force even short content to be wrapped in a custom element, i.e., a <p>? Everything goes right if you press return once, but sometimes client don’t do it.

May be in article form with txp:variable check – if there is not any content, then output predefined text?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#544 2009-03-14 00:45:11

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: hak_tinymce WYSIWYG article editor

The problem arises when you write short content, rather than no content. If you write just a line of text and finish the article without pressing at least once the return key, the <p> is not wrapped to the text. So, the text is put directly in page, belonging to the parent <div>, even if it is meant to be a paragraph. This can be checked in txp, but maybe there is a way inside TinyMce (I thought it was a rather simple thing to do, but I can’t find it).

Last edited by Zanza (2009-03-14 00:45:23)

Offline

#545 2009-03-14 01:03:49

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

Zanza,
try this. It’s a callback made by Hakjoon specifically for achieving what you want.

Offline

#546 2009-03-14 01:55:14

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: hak_tinymce WYSIWYG article editor

Wow. Exactly that! Works perfectly! Thank you, redbot (and Hakjoon, of course…) !

Z-

Offline

#547 2009-03-23 17:02:00

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: hak_tinymce WYSIWYG article editor

did anyone else have problems with creating bulllets? is there a css file that i’m missing?
bullets come out in what appears to be a simple ul li format. in the html i noticed <strong> is added to the markup.

so i try things like .static ul{list-style-type:disc;} and various combos, but i can’t get them to show up.

hakjoon: thanks for that tip on the config – i still haven’t gone in there and done it yet.

Last edited by mrtunes (2009-03-23 17:02:33)

Offline

#548 2009-04-06 10:49:45

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: hak_tinymce WYSIWYG article editor

Does anyone know a way stop it adding an extra slash in front of links with a “callto:” attribute?

Last edited by FireFusion (2009-04-06 10:50:07)

Offline

#549 2009-04-17 20:16:05

vaughn-taylor
Member
From: New Orleans
Registered: 2004-08-06
Posts: 17
Website

Re: hak_tinymce WYSIWYG article editor

redbot wrote:

Zanza, try this. It’s a callback made by Hakjoon specifically for achieving what you want.

Ok, I need this in a bad way. The only problem is (excuse my ignorance here) I cannot determine which file the “Callback Functions area” exists in? From Hakjoon:

“If you are using hak_tinymce make sure you have 0.6.3 and add it to the Callback Functions area.”

In addition Hakjoon says:

In order to call the function on save add this it to your TinyMCE.init().
save_callback:“mceTagWrap”,

Can somebody please provide a little more detail for this so I don’t have to look through files and try to figure out where to put the fixes?

Also, does anybody know to make link styles show up in the Insert/Edit link dialogue? I’ve tried adding a link style to my content_css file, but to no avail. I’m assuming that I just need to add an entry into my css file that looks like this:

a.hovertip { color: blue; }


Work until your carpal tunnel makes you cry.
—————————-
My “bloggy” TP site >> liberalrevolt.com

Offline

#550 2009-04-17 22:20:41

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

Go to extensions>hak_tinymce. There is a textarea labeled “Callback functions”, put the code here.
Then in “Initialization for article body editor” and “Initialization for article excerpt” add at the very end

save_callback:"mceTagWrap",

(the ending comma is important).
You’re done.
For your second question I suggest to have look directly in the tinymce website.

Last edited by redbot (2009-04-17 23:27:00)

Offline

#551 2009-04-20 20:04:08

Aflaton
New Member
Registered: 2009-04-20
Posts: 1

Re: hak_tinymce WYSIWYG article editor

I have hak_tinymce installed fine. Once i opened it with FF it didn’t show anything from the editor all icons are not there, but when i opened it with IE6 i found out there is a JavaScript error. The error says: “tinyMCE is undefined” line “187” code“0” and char ’2”. anyway has any idea about this subject? I looked at the forum and i found the url thing —site name—I mean the www or without www and the other solutions there, but nothing seemed to be working.
Thank you folks

Offline

#552 2009-04-21 00:06:47

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

Re: hak_tinymce WYSIWYG article editor

Make sure the browser is finding the tiny_mce.js file. Easiest way is to use firebug and the script panel. You can right click on the file and do an open in new tab and make sure it’s loading right.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB