Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1036 2012-07-19 15:18:11

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

Re: hak_tinymce WYSIWYG article editor

I’ll see if I can figure out what’s going on with the language packs.

@photonomad: I would still like to add an integrated linking widget, and potentially integrated file and image uploading but I rarely get a chance to work on this stuff these days.

The code is on github if anyone wants to take a stab at stuff. I don’t on disappearing and stooping support on it but I don’t know how quickly new stuff will happen.

Sorry not the best answer.


Shoving is the answer – pusher robot

Offline

#1037 2012-07-28 17:06:29

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_tinymce WYSIWYG article editor

Thanks for your reply. Hopefully some other TXP developers might want to take a stab. Integrating image and file uploads from within TinyMCE would solve a bunch of headaches. Then, I could simply hide the txp image and file tabs from users all together to avoid added steps and confusion with caption and description fields, etc. I would definitely be willing to contribute to a ransom!

Offline

#1038 2012-07-28 17:36:41

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
Website

Re: hak_tinymce WYSIWYG article editor

photonomad wrote:

Then, I could simply hide the txp image and file tabs from users all together to avoid added steps and confusion with caption and description fields, etc.

Are you aware of these?:
bot_image_upload
bot_file_upload

Offline

#1039 2012-07-28 20:07:08

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_tinymce WYSIWYG article editor

Yes! I am aware of redbot’s awesome plugins. My question has to do with the fact that many clients want to add pictures and/or files throughout the text in the body of their articles. I’m looking for a really convenient way for them to do this. When you click on TinyMCE’s little photo icon a window opens that allows you to view/select an image from the txp images tab. It’s great because the image is inserted exactly where the client wants it. However, it doesn’t populate TinyMCE’s description field with the caption text that the client already entered in the txp images tab when they uploaded the image. It would be nice for the two to be synced in order to avoid redundancy for clients. I plan to use a jquery script to display the caption/alt text on or below the image.

Your reply has got me thinking of some new feature proposals for bot_image_upload. I’ll introduce my ideas over in that thread to see what redbot thinks! (I will edit this post with a link when I have it)

Bloke may have something in development with jmd_image_selector that might do the trick.

Last edited by photonomad (2012-07-28 21:44:59)

Offline

#1040 2012-07-30 04:38:51

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_tinymce WYSIWYG article editor

Is it possible to change the order of the attributes that are added to image tags when editing appearance in TinyMCE? I’ve been searching around the TinyMCE site and in all the tinymce files and I can’t find where this is done in the code. It would really be helpful if the image tag would always begin with <img src=" rather than <img style="float:left;" src="

Offline

#1041 2012-07-30 18:16:19

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

Re: hak_tinymce WYSIWYG article editor

Not sure if that’s doable. I think that get’s handled by some low level browser code that inserts that stuff.

What are you trying to accomplish, maybe there’s a different approach that would work.


Shoving is the answer – pusher robot

Offline

#1042 2012-08-05 12:25:43

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: hak_tinymce WYSIWYG article editor

@Patrick — Using version 1.0.2.1 of hak_tinymce on a fresh 4.5.0 beta install and seeing really significant performance problems. Wondering: have you tested this? Am I doing something wrong?

UPDATE: Actually, I take that back. It’s not a time issue, but that I have to click “Save” twice for changes to register.

Last edited by kevinpotts (2012-08-05 12:27:36)


Kevin
(graphicpush)

Offline

#1043 2012-08-09 11:24:32

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

Re: hak_tinymce WYSIWYG article editor

@kevinpotts I haven’t been able to replicate this. What browser are you seeing this having to save twice behavior? The new Ajax stuff could very likely be mucking with things.


Shoving is the answer – pusher robot

Offline

#1044 2012-08-15 08:55:42

elpats
New Member
Registered: 2012-08-15
Posts: 1

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

I’ll see if I can figure out what’s going on with the language packs.

I downloaded and installed the French (fr) language pack into the relevant folders and encountered the same problem as previously posted. Once I changed ‘en’ to ‘fr’ (in the hak_tinymce Preferences) the TinyMCE block disappeared from the article (body & excerpt). What I noticed, via the web inspector, was that textpattern > tiny_mce > plugins > txpimage > langs > en.js had failed to load and of course there wasn’t a fr.js in there because it wasn’t included in the language pack. Once I created fr.js and fr_dlg.js then it displayed and worked fine.

Offline

#1045 2012-08-15 17:19:48

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

Re: hak_tinymce WYSIWYG article editor

I need to see what TinyMCE is doing there and see if there is a way to specify a fallback language pack. Seems odd that this would prevent the whole thing from loading.

Language Packs are welcome though github


Shoving is the answer – pusher robot

Offline

#1046 2012-08-29 01:02:54

virigoth
New Member
Registered: 2012-08-29
Posts: 4

Re: hak_tinymce WYSIWYG article editor

Hi,

I’ve recently upgraded to Textpattern 4.4.1 from an earlier version (4.0.8) and now the insert image/edit image tool in the editor (1.0.2.1) doesn’t seem to work properly. It opens normally but the images for the Insert Fullsized Image and Insert Thumbnail don’t appear, and when clicked the Image Url field and Image Description is not filled out.

(Screenshot of the problem)

Also it looks like the address for the images you click on (for the thumbnail or fullsized image) point to /textpattern/tiny_mce/plugins/txpimage/img/picture.png but on the server I only have /textpattern/tiny_mce/plugins/txpimage/image/picture.png

Also if I copy and paste an address of an image into the Image Url field it is inserted normally.

Thank you for your help!

Last edited by virigoth (2012-08-29 01:17:17)

Offline

#1047 2012-08-29 02:24:41

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

@kevinpotts I haven’t been able to replicate this. What browser are you seeing this having to save twice behavior? The new Ajax stuff could very likely be mucking with things.

Sorry I missed this when you initially posted it. My primary browser is Chrome (on PC), but the issue is also in Firefox.


Kevin
(graphicpush)

Offline

#1048 2012-08-31 00:07:52

fastasleep
Member
Registered: 2008-06-17
Posts: 10

Re: hak_tinymce WYSIWYG article editor

I’m upgrading a client’s site and have found that this plugin is causing wet_parachute to trigger (gives the “are you sure you want to leave the page” warning) every time you leave the Write tab, regardless if you have written or edited anything. Does anyone know how to fix this? I assume TinyMCE or the plugin is “modifying” the page in a way that wet_parachute thinks the article has been edited maybe? Any alternatives?

thanks!

Offline

#1049 2012-08-31 18:17:20

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

Re: hak_tinymce WYSIWYG article editor

@virigoth: Check that you don’t have an older install of tiny_mce hanging around. It should point to /txpimage/img/picture.png

@kevinpotts: I’ll have to investigate more and see if I can replicate it. I tried FF and chrome but on a mac

@fastasleep: It’s possible that the initialization that tinyMCE does is triggering whatever wet_parachute is looking for. I’ll have to look into what it is doing in order to diagnose. I’m not really familiar with it.


Shoving is the answer – pusher robot

Offline

#1050 2012-08-31 19:38:01

virigoth
New Member
Registered: 2012-08-29
Posts: 4

Re: hak_tinymce WYSIWYG article editor

hakjoon,

It was partly a bad copy onto the server of the hak_tinyMCE directory tree, I deleted and recopied the files to the server but then when I opened the Insert Image it was unable to load image.php which no longer existed. Someone else had this problem previously on the forum here and clearing the cache solves the problem with Insert Image trying to use the old image.php file.

Thanks for the help.

Offline

Board footer

Powered by FluxBB