Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#937 2011-07-25 17:32:56

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

Re: hak_tinymce WYSIWYG article editor

This is starting to sound like it might be a syntax issue. Let me contact about actually looking at the specific case.


Shoving is the answer – pusher robot

Offline

#938 2011-07-25 17:53:24

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

They are available. Alt should be inserted already is it not happening? Caption is getting passed to the function but it’s not actually doing anything with it :( What do you have in mind?

Thanx for getting back to me. I am using the caption field to save copyright notes with an image and would like to see this automatically in the title tag. Unfortunately i can’t seem to get this info back as soon as i insert an image into tinymce.

Is there a way to use a txp image form on images inserted into the text editor?
Even just a simple <txp:image_info type='caption' /> eventually?
Or even worse, could i have a separate line under any image in tinymce automatically saying:
<li class="source">Source: <txp:image_info type='caption' /></li>

Just trying to figure out what’s possible.

Thanx in advance.

(I’m using v. 0.99…)

Last edited by jayrope (2011-07-25 17:56:30)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#939 2011-07-25 18:06:24

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: hak_tinymce WYSIWYG article editor

Patrick,

I just sent you a private email.


Living the Location-Independent Life: www.NuNomad.com

Offline

#940 2011-07-25 19:58:10

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

Re: hak_tinymce WYSIWYG article editor

@jayrope: txp: tags in tinyMCE are hard. It doesn’t play nice with the XML style that TXP uses. Setting caption to title should happen, the current behavior is a bug. If you want to enable it change this line in the plugin to look for caption instead of title. You could then pull it out with JS or something.

Could maybe eventually extend it to take an image insertion template or something., which is actually a pretty interesting idea.


Shoving is the answer – pusher robot

Offline

#941 2011-07-28 14:01:38

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: hak_tinymce WYSIWYG article editor

Thank you, Patrick,

changing $format .= (!empty($arr["title"])) ? ',title:"'.$arr["title"].'"' : '';
to $format .= (!empty($arr["caption"])) ? ',title:"'.$arr["caption"].'"' : '';

worked :)

Furthermore you said

Could maybe eventually extend it to take an image insertion template or something.

This does sound like a veritable idea. Maybe one could just implement the typical txp image form markup right around this, alt text in alt tag and caption in title tag. Where in the tinymce.js files could i implement my own markup for images (for the public side)?


A hole turned upside down is a dome, when there’s also gravity.

Offline

#942 2011-07-28 17:40:56

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

Re: hak_tinymce WYSIWYG article editor

The code that actually inserts the markup I believe is here This is all moxiecode’s code though so I am not super sure how it works. I mostly just messed the image selection stuff to integrate it with TXP.


Shoving is the answer – pusher robot

Offline

#943 2011-07-28 19:16:31

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: hak_tinymce WYSIWYG article editor

Patrick, i see.
I combed thru the moxiecode code for half a day now. Not that i understand much.
Basically i just want to change the inserted image markup to my own version.

So when there is now
<img src="http://domain.com/images/30.jpg" width="img.width" height="img.height" alt="image alt text" title="image caption" />

i would like to be able to change the complete image markup for instance to something like
<div class="entry-content-image">
<a href="http://domain.com/images/30.jpg" class="StepImage" rel="nofollow" title="Ttle: image name<br />Source: image caption">
<img src="http://domain.com/images/30.jpg" width="img.width" height="img.height" alt="image alt text" title="Title: image name / Source: image caption" />
</a></div><div class="source">Source: image caption</div>

Sorry for the lengthy example. The markup would not change, besides the image relevant data.
I just can’t find the right place in the source code where i could insert it.
If you have any idea, please let me know, and thank you for the ears, it’s much appreciated.

Last edited by jayrope (2011-07-28 19:18:05)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#944 2011-08-09 17:52:29

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: hak_tinymce WYSIWYG article editor

Howdy!

I want to add a button to insert abbr elements into the content, and I can’t figure out what to do. I found this document about a plugin called ‘xhtmlxtras’, which seemed to suggest that I only needed to add some details to my hak_tinymce Preferences for the Body editor. But I must have done something wrong, as the editor is loading as it did before.

Has anyone else configured hak_tinymce to display an abbr button? What should I do?

Thanks!

Offline

#945 2011-08-27 14:00:46

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: hak_tinymce WYSIWYG article editor

Just upgraded an old 4.0.5 site to 4.2.

Now i have upgraded hak_tinymce to version 1.0.1, but have encountered the following issue:

The textarea id=“body” is not hidden, nor is the textarea id=“excerpt”. The Tinymce created tables appear underneath said textareas?

Tried uninstalling and reïnstalling but doesn’t solve issue? Any idea’s.

EDIT: typo corrected

Last edited by Timid&friendly (2011-08-27 16:10:23)


I think, therefore I AM, … … er … I think :-?

Offline

#946 2011-08-27 15:41:55

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

Re: hak_tinymce WYSIWYG article editor

Not completely understanding. Do you have a screenshot by any chance? What browser?


Shoving is the answer – pusher robot

Offline

#947 2011-08-27 15:56:16

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: hak_tinymce WYSIWYG article editor

Sure. Thx for responding so promptly.

http://point-online.org/external/hak_tinymce.png

It the same in FF, Safari en chrome.

Last edited by Timid&friendly (2011-08-27 16:09:27)


I think, therefore I AM, … … er … I think :-?

Offline

#948 2011-08-27 16:13:56

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: hak_tinymce WYSIWYG article editor

It sounds like this issue. Do you have glz_custom_fields or MLP installed on this site?

Offline

Board footer

Powered by FluxBB