Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#931 2011-07-25 08:23:37

Piru
Member
From: Antwerp, Belgium
Registered: 2008-06-03
Posts: 17
Website

Re: hak_tinymce WYSIWYG article editor

convert_urls : false

was the one I needed. I tried all possible combinations on the Moxiecode site before asking, bus I seem to have skipped the last one. Thanks for the help!

Offline

#932 2011-07-25 13:58:30

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

Re: hak_tinymce WYSIWYG article editor

Is there any way to have hak_tinymce read name, alt and caption data from the txp image database, when inserting images using the tinymce image list?


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

Offline

#933 2011-07-25 15:07:22

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

Re: hak_tinymce WYSIWYG article editor

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?


Shoving is the answer – pusher robot

Offline

#934 2011-07-25 15:18:59

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

Re: hak_tinymce WYSIWYG article editor

Piru,
Are you saying that I should try inserting the tag “convert_urls : false” somewhere in the Initialization of Body Editor window? If so, do you have a complete example?
Thanks,


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

Offline

#935 2011-07-25 15:38:53

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

Re: hak_tinymce WYSIWYG article editor

@laptophobo: in your case I think you want convert_urls:true although that is the default this should (and it used to work) give you relative urls.

relative_urls : true,
document_base_url : "http://www.site.com/path1/"

I spent the day yesterday fighting with Vagrant to get my PHP dev environment up and running again. I’ll try to poke around as soon as I can.


Shoving is the answer – pusher robot

Offline

#936 2011-07-25 16:17:25

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

Re: hak_tinymce WYSIWYG article editor

Patrick. No luck on that either. In fact, whenever I deviate from the default settings I lose my Style tool bar on Write page, and the content reverts to Textile mode.


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

Offline

#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: 721
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: 721
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: 721
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: 1,000
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

Board footer

Powered by FluxBB