Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#406 2008-01-15 10:03:53
Re: hak_tinymce WYSIWYG article editor
Of course, I’m very sorry, I was looking in all files in txpimage but I was so blind ;)
But now I have another question:
When I upload image, fill alt (e.g. “Universal Ocel, s.r.o.”), save… and then write an article, insert image (due to txpimage) – alt is autofill with image alt BUT in this way “Universal Ocel%2C s.r.o.”
Comma is replaced with %2C… How to avoid it?
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#407 2008-01-16 01:27:33
Re: hak_tinymce WYSIWYG article editor
Hey Hakjoon I was wondering how I would change the folderthat txpimage is pulling the images from? I looked through functions.js and saw where it calls the url, but have been unsuccessful in changing it.
Offline
#408 2008-01-16 03:51:28
Re: hak_tinymce WYSIWYG article editor
Beztak: If you look towards the end of functions.js in the txpimage plugin folder there is a line that says $('#alt').set("value",decodeURI(alt)); I was probably encoding the alt attribute in case there were quotes or invalid characters. You could probably just change it to $('#alt').set("value",alt); if you think it’s safe.
whsjr86: it does two ajax calls to texpattern events that are registered as part of the plugin. Look for these lines in functions.js
// Get the categories
$.get(tinyMCE.documentBasePath + '/index.php?event=hak_txpcatselect', function(html) {
$("#catselect").html(html);
$('#catselect').find('select').bind('change',function() {
$("#image_browse").load(tinyMCE.documentBasePath + '/index.php?event=hak_txpimage&src='+src+'&c='+this.value);
})
});
// start the call for the image browser
$.get(tinyMCE.documentBasePath + '/index.php?event=hak_txpimage&src='+src, function(html){ $("#image_browse").html(html)} );
Shoving is the answer – pusher robot
Offline
#409 2008-01-18 12:59:10
- Alfie
- Member
- Registered: 2007-11-06
- Posts: 40
Re: hak_tinymce WYSIWYG article editor
hi, I have installed this and set the location of the folder, i have also set the preference to, leave text untpuched, however i cannot get the editor to show at all
any ideas?
EDIT: opened it in IE and im getting an error of “tiny mce” is undefined.
Edit again: got it working now :)
is there anyway of setting font size?
thanks guys
alfie
Last edited by Alfie (2008-01-18 14:55:01)
Offline
#410 2008-01-18 16:04:44
Re: hak_tinymce WYSIWYG article editor
Alfie wrote:
hi, I have installed this and set the location of the folder, i have also set the preference to, leave text untpuched, however i cannot get the editor to show at all
any ideas?
EDIT: opened it in IE and im getting an error of “tiny mce” is undefined.
Edit again: got it working now :)
is there anyway of setting font size?
thanks guys
alfie
set the font size via css within the tinymce theme you’re using. (so probably /textpattern/tinymce/themes/advanced/css/forget which css file)
edit: pain in the ass crappy quote function
Last edited by iblastoff (2008-01-18 23:06:37)
Offline
#411 2008-01-18 16:46:13
- Alfie
- Member
- Registered: 2007-11-06
- Posts: 40
Re: hak_tinymce WYSIWYG article editor
Thanks!
Offline
#412 2008-01-18 20:09:53
Re: hak_tinymce WYSIWYG article editor
You can also specify your own css to use with the content_css parameter
I normally import the default one into my own. It makes updates easier.
Shoving is the answer – pusher robot
Offline
#413 2008-01-18 23:06:59
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
You can also specify your own css to use with the content_css parameter
I normally import the default one into my own. It makes updates easier.
ooh i didnt know about that. thanks
Offline
#414 2008-01-25 11:56:17
- hotbig
- New Member
- Registered: 2008-01-24
- Posts: 1
Re: hak_tinymce WYSIWYG article editor
This thread is too long.
I have not time to read it.
Only if I click link of “Toggle Editor” with mouse , the tinymce can display as I post a new article.
I know what I can do .
And I need not click it ,the editor comes out defaultly.
Thanks
Offline
#415 2008-01-25 12:51:55
Re: hak_tinymce WYSIWYG article editor
I have no idea what you just said… is there a question there somewhere???
I think, therefore I AM, … … er … I think :-?
Offline
#416 2008-01-25 14:37:17
Re: hak_tinymce WYSIWYG article editor
From the very first post
- The editor will not come on by default on blank articles if “Use Textile” is selected in the Preferences. If you want to use the editor all the time change the default to “Leave text untouched”
- If textile is turned on it will be disabled if you toggle the editor on. Conversely if you turn Textile back on it will turn off the editor.
Shoving is the answer – pusher robot
Offline
#417 2008-01-29 11:47:40
Re: hak_tinymce WYSIWYG article editor
Hi all,
I figured out how to add client selectable classes to the advimage second tab, but now want to do the same to in the article textarea form. I checked out every plugin but non seem to give the option of adding a select-pulldown button where i can give the client the option of adding a predefined class name to selected text.
Am i missing something ?
I think, therefore I AM, … … er … I think :-?
Offline
#418 2008-01-29 16:39:53
Re: hak_tinymce WYSIWYG article editor
I think the styleselect button does that. I believe it pulls classes from content_css
Shoving is the answer – pusher robot
Offline
#419 2008-01-29 20:05:24
Re: hak_tinymce WYSIWYG article editor
Thx for the tip. I have studied the Tinymce site for many hours and still don’t get how to add the style dropdown selectlist.
Here are my tinymce prefs:
theme : “advanced”,
language : “en”,
convert_fonts_to_spans : “true”,
relative_urls : “false”,
remove_script_host : “false”,
plugins : “searchreplace,txpimage,paste,style”,
theme_advanced_buttons1 : “bold,italic,underline,strikethrough,forecolor,backcolor,removeformat,numlist,bullist,outdent,indent,justifyleft,justifycenter,justifyright,justifyfull,separator,search,replace,”,
theme_advanced_buttons2 : “link,unlink,separator,image,separator,cut,copy,paste,pastetext,pasteword,selectall,separator,formatselect,separator,code,”,
theme_advanced_buttons3 : “styleprops”,
theme_advanced_blockformats : “p,blockquote,div,h1,h2,h3,h4,h5,h6,dt,dd,code,samp”,
theme_advanced_styles : “Float_image_left_and_text_wrap_to_the_right=float-l;Float-right=float-r;No_float=no-float;Do_not_wrap_around=clearer”,
theme_advanced_toolbar_location : “top”,
theme_advanced_toolbar_align : “left”,
style_float: “flleft=left;flr=right”,
theme_advanced_styles : “example1=example1;exam=example2”,
content_css : “http://walktoglory.com/css/tiny.css”,
width:“460”,
height:“420”,
As you can see Im trying everything to get it to work!!!
Has anyone else got this working? I’m missing something and i can’t see what?
I think, therefore I AM, … … er … I think :-?
Offline
#420 2008-01-29 20:18:05
Re: hak_tinymce WYSIWYG article editor
You need to add the styleselect button to one of the theme_advanced_buttons options.
Try:
theme_advanced_buttons3 : “styleprops, styleselect”,
you should see the dropdown in the third row.
Shoving is the answer – pusher robot
Offline