Textpattern Forum

You are not logged in. Register | Login | Help

#401 2008-01-09 02:11:27

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: hak_tinymce WYSIWYG article editor

just a random tip, i noticed in wordpress they use tinymce but their window is vertically resizable. if you want the same functionality for your TXP install, just add these lines to your initialization via the plugin preferences:

theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : "true",
theme_advanced_resize_horizontal : "false",

you can remove the last line if you want to be able to resize the textarea horizontally as well.

Offline

#402 2008-01-11 03:18:48

johnnie
Member
Registered: 2007-03-10
Posts: 58

Re: hak_tinymce WYSIWYG article editor

Great find, but it doesn’t appear to work. The opton is there, but dragging doesn’t result in anything.

Offline

#403 2008-01-11 03:50:16

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: hak_tinymce WYSIWYG article editor

johnnie wrote:

Great find, but it doesn’t appear to work. The opton is there, but dragging doesn’t result in anything.

hmm thats odd. works fine for me. it even remembers its last dragged placement as well. wooo.

Offline

#404 2008-01-13 20:10:48

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

Does anybody knows how to change width and height of txpimage plugin popup window and make it resizeable?

Offline

#405 2008-01-13 20:22:29

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: hak_tinymce WYSIWYG article editor

beztak wrote:

Does anybody knows how to change width and height of txpimage plugin popup window and make it resizeable?

edit tinymce/plugins/txpimage/editor_plugin.js

Offline

#406 2008-01-15 10:03:53

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

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?

Offline

#407 2008-01-16 01:27:33

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

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

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

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

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

Board footer

Powered by FluxBB