Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#397 2007-12-11 13:29:43

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

Re: hak_tinymce WYSIWYG article editor

I’ve been using this plugin and absolutely love it. Although whenever I insert txp tags and reedit the article it loses the txp tags. I was wondering if there is some work around for this or solution?

Thanks,
Hunter

Offline

#398 2007-12-11 15:44:28

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

Re: hak_tinymce WYSIWYG article editor

See above :)

TinyMCE doesn’t like the colon in the <txp:tags /> I’ve been tried a few things but nothing that works reliably yet. I’m hoping that the rewrite in version 3 makes something like that easier.


Shoving is the answer – pusher robot

Offline

#399 2007-12-13 15:22:50

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

Re: hak_tinymce WYSIWYG article editor

Sounds good to me… thanks for the input! :)

Offline

#400 2007-12-22 12:12:43

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 535

Re: hak_tinymce WYSIWYG article editor

Thanks for your reply regarding <txp:tags />.

In the meantime I’ve found an easy way to add Lightbox images to articles. Once Lightbox is installed you can use the advanced link plug-in. Type the images path, on the advanced tab, there is an option that says ‘Relationship page to target’ and there’s an option for Lightbox. Works like a charm too.

All we need now is a way to browse and select Textpattern Articles and Images from the advanced link dialogue box. ;-)

Thanks for all your hard work on this plug-in hakjoon.

Offline

#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
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
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

Board footer

Powered by FluxBB