Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#85 2006-03-25 06:59:20
- jebni
- New Member
- Registered: 2004-05-24
- Posts: 8
Re: hak_tinymce WYSIWYG article editor
hakjoon, iBrowser ignores the URL cleanup parameters, I’m afraid.
Offline
Re: hak_tinymce WYSIWYG article editor
jebni wrote:
hakjoon, iBrowser ignores the URL cleanup parameters, I’m afraid.
I’ll see if I can make them behave. I might just integrate a browser into the built in image tool, since iBrowser is so old and out of date, at least until we get something TXP native sorted out.
Shoving is the answer – pusher robot
Offline
#87 2006-03-25 23:39:35
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 553
Re: hak_tinymce WYSIWYG article editor
I’m using this plugin for a website I’m working on at the moment. One of the people who will be updating it isn’t a technical person so having WYSIWYG capabilities built in is a godsend.
I’ve been following your instructions on how to customise the buttons and the stylesheet. I’ve managed to completely rearranged the button toolbars and added extra ones that weren’t turned on. Although it’s fairly straight forward once you’ve gotten your bearings, I must say I am very much looking forward to your idea of a configuration screen for this.
Thank you so much for this plugin, I seriously couldn’t live without it now.
Last edited by Algaris (2006-03-26 12:42:58)
Online
#88 2006-03-28 08:29:46
- ArKiN
- Member
- Registered: 2006-03-16
- Posts: 11
Re: hak_tinymce WYSIWYG article editor
Great Plugin :D
I have a cuestion. It’s possible to use the Editor and Textpattern tags in the same time? and, how? For example to insert a form with zem_contact_reborn or another txp tag. Or I have to use a textpattern form to do this?
thanks ^^
Arkaitz (sorry for my english :S)
Offline
Re: hak_tinymce WYSIWYG article editor
Currently the editor does not like tags with colons (txp:sometag). I’m hoping there will be an update that will change this..
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
Hi all (and mainly Hakjoon),
I have two question:
1. about how to insert <code><p></p></code> by default. I try to insert into plugin this:
<code>
function myCustomOnInit(){tinymce.setcontent(‘<p></p>’);}
</code>
<code>
</code>
In setting, I’ve got this:
<code>
oninit : “myCustomOnInit”,
</code>
But it doesn’t work. Is somewhere in the source of your plugin special place where to write function oninit() to work properly? Or simply how to make <code><p></p></code> by default?
2. second question is about calling txp:something form inside of tinymce… I think that it’s possible due to noneditable setting of TinyMCE a than use something from plugin called etz_pg which can replace “[page]” in the source of article with code that split article to several parts. So question is if it’s possible to hack this plugin, which could separate [<code><txp:whatever /></code>] in tinymce article source and make txp syntaxe – <code><txp:whatever /></code> work…
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: hak_tinymce WYSIWYG article editor
You’ll need to add the function inside the hak_tinymce_js()
function around where the $js
variable gets created. I’m going to make this an option when I get a chance to update the plugin.
I’m also going to try and play with regular expressions on load and save to maybe replace <txp->
with <txp:>
and vice versa. I want to try to make it flexible so other plugins can insert content into tinymce without a lot of work.
Last edited by hakjoon (2006-04-06 15:00:09)
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
That would be fabulous Patrick. The ability of plugins like upm_img_popper to add to the editor, I am itching with anticipation.
Refresh Dallas and other Refreshing Cities.
Offline
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote: You’ll need to add the function inside the hak_tinymce_js() function around where the $js variable gets created. I’m going to make this an option when I get a chance to update the plugin.
I tried everything I think it could do it, but still I can’t get <code><p></p></code> inside editor after inicialization. Can you post exact example where to put particular code?
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: hak_tinymce WYSIWYG article editor
I’ve actually had better luck with setupcontent_callback because you can check to se eif there is any content in the editor before you replace it.
so where $hak_mceSettings_default
is set inside hak_tinymce_js()
add this to the init block.
bc..
setupcontent_callback : “myCustomSetupContent”,
Remember to remove the comma if you add it as the last option.
Then look for the line that says:
var hak_mceTextileMap = new Array(2,1,0);
and add the myCustomSetupContent() function before or after this line.
myCustomSetupContent() function will check to see if there is any content in the editor and if there isn’t it will insert paragraphs.
bc..
function myCustomSetupContent(editor_id, body, doc) {
if (body.innerHTML.length = 0) {
body.innerHTML = “<p></p>”;
}
}
That should do it. Let me know how that works, as that’s how I’m planning on implementing it but I want to create a admin panel to let you set what the default values will be in case anyone wants a message to show up for new articles or something.
Shoving is the answer – pusher robot
Offline
Re: hak_tinymce WYSIWYG article editor
This is the right code:
<pre>
<code>
function myCustomSetupContent(editor_id, body) {
if (body.innerHTML.length == “0”) {
body.innerHTML = "<p></p>";
}
}
</code>
</pre>
Thanks Hakjoon and I’m looking forward for an update of your GREAT plugin…
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: hak_tinymce WYSIWYG article editor
oops you are right. I’m suprised the other code worked at all when I tested it.
Shoving is the answer – pusher robot
Offline