Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#985 2012-01-09 19:20:15
Re: hak_tinymce WYSIWYG article editor
@mrdale: I have to see how adi_matrix works, but I was thinking it could be interesting to allow for an unlimited set of tinymce configurations and maybe turn them on per tab or something, which should also cover the glz_custom stuff. It’s a complete rewrite of the TXP side of teh plugin to handle something like this but it could be pretty powerful.
I’d love to have some specifics for the write tab stuff specially if you use it with bot_cutomize (or whatever it’s called).
@rossharvey: How would you want that to work? I’m planning on digging into the image picker soon. Should it just insert all the images? I was thinking having teh ability to define an image template could be neat.
Shoving is the answer – pusher robot
Offline
#986 2012-01-09 23:27:09
Re: hak_tinymce WYSIWYG article editor
@rossharvey: How would you want that to work? I’m planning on digging into the image picker soon. Should it just insert all the images? I was thinking having teh ability to define an image template could be neat.
That is music to my ears. I’d be happy to send you a donation as a thank you for the effort (being a photographer, adding images is a huge part of the admin, and unfortunately, compared to WP, TXP really lacks in this area.
The filter by category drop down is exceedingly useful. Please keep that!
Simple Finder/Explorer functionality would be optimal; CMD/CRTL or SHIFT clicking to select multiple images, and CTRL+A for all.
If that’s hard to do, the ability to ‘tick’ the images to embed would be useful.
Offline
#987 2012-01-09 23:45:07
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
I was thinking it could be interesting to allow for an unlimited set of tinymce configurations and maybe turn them on per tab or something, which should also cover the glz_custom stuff.
If I understand correctly, you mean change all the textareas on one tab to use tinymce? I think I’d prefer it to stay the same as I use a mixture of standard textareas and textareas with tinyMCE within the same tab… it comes in handy when you have some text which you don’t want control over the style – like for usage in jquery etc… maybe I’ve misunderstood though
Offline
#988 2012-01-10 02:35:02
Re: hak_tinymce WYSIWYG article editor
@tye: the idea is actually the opposite. Right now we have two preconfigured tinymce instances available body and excerpt in the write tab. If you want something different you have to hack it. The idea is to make body and excerpt just two of potentially various tinymce configurations that you can turn off/on for tabs you want. So you can use all the various tinymce enabling features to set it up how you want it to. If you want all textareas the same just turn it on for all textareas, if you want different ones just create different inits that target the specific textareas however you want and turn them on for the tabs you want. This would enable tinymce usage outside the write tab also in theory.
It’s a big rewrite but the idea is to give you more options not less.
Shoving is the answer – pusher robot
Offline
#989 2012-01-10 03:32:17
Re: hak_tinymce WYSIWYG article editor
See – as soon as I had started writing my post I knew I had misunderstood :)
That sounds totally awesome I’m 100% up for it :)
If you need a site to test on, I have a dev site which make custom use of tiny_mce, bot_write_tab_customize & glz_custom_fields which you can use…
I can load adi_matrix if you like – let me know
Offline
#990 2012-01-19 10:15:32
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: hak_tinymce WYSIWYG article editor
Hello!
Sorry for my English.
To create the article, I use a plugin hak_tinymce
To upload pictures to the server plugin lam_image_uploader
Standard article: text – picture
All pictures that I upload to the server are different sizes (px)
Through the CSS image size is automatically scaled to width = 333px;
??
How do so by clicking on the image, it varies in a modal window to the real size (some jquery plugin).
Saw a similar article, but there had to write special. tags TXP, or …
No duplication of pictures, ie, only one picture, instead of two small. and ball.
Are you interested in it, work through the plug hak_tinymce.
That is, the site editor worked with hak_tinymce without knowledge of the special tags TXP and Textile
??
Or two pictures, but that they created themselves of various sizes.
Last edited by alivato (2012-01-30 10:30:32)
Offline
#991 2012-01-27 11:03:42
- babyben
- Member
- Registered: 2007-06-03
- Posts: 39
Re: hak_tinymce WYSIWYG article editor
I’ve found a strange quirk after upgrading: after inserting an image, the resulting HTML is relative but becomes incorrect when the page is view via a category list, so the image doesn’t appear.
Added to the page: <img src="images/xx.jpg" alt="" width="" height="" />
becomes: <img src="blog/images/557.jpg" alt="" width="534" height="331" />
when viewed on a blog section category list, and the image doesn’t show.
How do I adjust the plugin to output an absolute path, or even with the initial slash in place so the image will always appear? It shows the absolute path in the popup, but this isn’t used in the HTML.
Thanks!
Offline
#992 2012-01-30 10:28:38
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: hak_tinymce WYSIWYG article editor
Someone. Tell me at least in what direction to go?
Offline
#993 2012-01-30 12:15:46
Re: hak_tinymce WYSIWYG article editor
A script like prettyphoto would do what you require.
Offline
#994 2012-01-30 12:52:11
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: hak_tinymce WYSIWYG article editor
There are various scripts: prettyphoto, litebox, fancybox,…
That’s just how it is connected? Plugin installed hak_tinymce.
When I insert a picture (hak_tinymce), <img src=“pic1.jpg” />
And I have to do so
<a href=“pic1. jpg”><img src=“pic1.jpg” /></ a>
Last edited by alivato (2012-01-30 12:53:21)
Offline
#995 2012-01-30 19:24:30
Re: hak_tinymce WYSIWYG article editor
You have link the images yourself and set up whatever hook you want to send to teh script (rel, class whatever you want to use)
Alternatively you could come up with a script that pulls all the thumbnail urls and removes the t from the id and uses that. Something like
$("img[class=lb]").click(function (){
var fullImg = $(this).attr("src").replace("t","");
DoLightBoxMagiks(fullImg);
});
I’m not really familiar with the various scripts to know which would be easiest to integrate in this manner.
Shoving is the answer – pusher robot
Offline
#996 2012-01-30 19:28:01
Re: hak_tinymce WYSIWYG article editor
@babyben: Take a look at the various url options and see if affects anything.
It’s odd that it’s showing one format but cleaning up to a different one, but you should be able to get what you want from the URL options.
Shoving is the answer – pusher robot
Offline