Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#346 2007-09-25 07:28:38
Re: hak_tinymce WYSIWYG article editor
Hi, it appears that the sort order for the “Use textile” select menu is localized in 4.0.5 (and earlier too?) so the selectedIndex is not working when toggling the editor on and off (e.g. I don’t get “Textile” again, but “Convert linebreaks” since i use a Swedish version). Could you please check for the value 0,1,2 instead? I have the values in the order of 0,2,1 now.
cheers,
/Anton
Offline
#347 2007-09-25 13:31:45
Re: hak_tinymce WYSIWYG article editor
I thought that’s what I checked for already but I’ll double check. That piece seems to change with every release.
I think I had worked around something because it did not pass values in 4.0.2 or something like that. I don’t fully remember. Whatever it was it doesn’t seem necessary anymore.
Last edited by hakjoon (2007-09-25 17:15:37)
Shoving is the answer – pusher robot
Offline
#348 2007-10-02 02:52:50
Re: hak_tinymce WYSIWYG article editor
Alright, Version 0.7.4. I don’t know if the order changed between 4.0.3 and 4.0.4 or what, but the order seems to be the same in all languages for now.
I’ll try to come up with something a little more future proof when I have more time. For now this should get it working again. Sorry it took a bit longer, I’ve been swamped.
Shoving is the answer – pusher robot
Offline
#349 2007-10-02 07:14:31
Re: hak_tinymce WYSIWYG article editor
thanks, great job hakjoon! works like a charm :)
cheers,
/Anton
Offline
#350 2007-10-03 05:38:26
- fiddle
- Member
- Registered: 2007-10-03
- Posts: 87
Re: hak_tinymce WYSIWYG article editor
Hey guys, plugin is working great. Was curious, is there a way to have the editor always up, instead of having to toggle it on.? thanks..
Offline
#351 2007-10-03 06:21:27
Re: hak_tinymce WYSIWYG article editor
If i have understood you correctly you will find your answer in te preferences panel of the plugin.
I think, therefore I AM, … … er … I think :-?
Offline
#352 2007-10-03 07:20:43
Re: hak_tinymce WYSIWYG article editor
fiddle: I’m not sure this is what you want, but I did the following:
$(document).ready(function(){
if($('textarea#body').html() == '') { hak_toggleEditor('Body'); }
$('#article-tabs p').hide(); // Hide the vertical tabs (since they produce javascript errors)
});
edit: this is done in the postback part of the extention, if that wasn’t obvious ;)
Last edited by Anton (2007-10-03 12:44:34)
Offline
#353 2007-10-03 12:54:31
Re: hak_tinymce WYSIWYG article editor
Set your global use textile preference to “Leave Text Untouched” and the editor will come on by default.
Shoving is the answer – pusher robot
Offline
#354 2007-10-03 12:58:12
- fiddle
- Member
- Registered: 2007-10-03
- Posts: 87
Re: hak_tinymce WYSIWYG article editor
I got it, both Anton and Patricks ideas worked, thanks for the help, appreciate it…
Offline
#355 2007-10-09 14:37:22
Re: hak_tinymce WYSIWYG article editor
The “problem” with “Leave text untouched” is that when unchecking the editor and then saving, the editor switches back on. If you have Textile as default this won’t happen, IIRC.
Offline
#356 2007-10-09 14:55:25
Re: hak_tinymce WYSIWYG article editor
hmm that’s a good point. I might be able to pass the toggle states along with the save. I’ll look into that.
Shoving is the answer – pusher robot
Offline
#357 2007-10-10 23:17:42
- ((slimey))
- Member
- Registered: 2005-06-25
- Posts: 26
Re: hak_tinymce WYSIWYG article editor
Just curious if this is any closer to having a file select option.
Having it work kind of like the image button in this would be awsome to. I only ask because i have a need for it and im sure others would too.
I know the tinymce proper one has a file manager plugin but im guessing that wouldnt work txp.
ANy ideas if its possible to get a file select thing going?
Offline
#358 2007-10-10 23:59:01
Re: hak_tinymce WYSIWYG article editor
I’m having a problem with tinyMCE turning bold to spans instead of strong. Has this happened to anyone else?
Offline
#359 2007-10-11 01:29:08
Re: hak_tinymce WYSIWYG article editor
@Slimey:
Do you mean a file/article browser when creating hyperlinks? If so, that’s been in my backlog for awhile. need to find some time to write it.
I’ve been meaning to re-write the javascript now that I can take advantage of jQuery. I need to get going on it and just do the hyperlink plugin while I’m at it.
@Dale:
Are you seeing that in MoxieCode examples too? (I’m assuming you are running a newer version)
Shoving is the answer – pusher robot
Offline
#360 2007-10-11 02:16:35
- ((slimey))
- Member
- Registered: 2005-06-25
- Posts: 26
Re: hak_tinymce WYSIWYG article editor
Yeah thats an even better idea.
Offline