Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-08-03 07:01:57

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Save button hidden with Froala WYSIWYG editor

I’m testing the Froala WYSIWYG editor (donwnload the unlicensed trial on the site).
All is fine to replace the textarea body and excerpt with the editor. All is fine to publish and post the article. But at this moment, when published, the save button is hidden : impossible to modify the article !

Any idea ?

Offline

#2 2016-08-03 07:08:15

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Save button hidden with Froala WYSIWYG editor

I found ! jQuery was called twice … :-(

Offline

#3 2016-08-04 04:15:39

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

Re: Save button hidden with Froala WYSIWYG editor

@jdupont, did you get the image upload UI working with Textpattern, or are you simply pasting in Txp image URLs?

Offline

#4 2016-08-04 08:50:15

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Save button hidden with Froala WYSIWYG editor

Hello John,

Actually I paste the url, but I plan to get working the image manager. I don’t know when …

Offline

#5 2016-08-06 18:38:45

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Save button hidden with Froala WYSIWYG editor

To fill the Froala editor image manager with Textpattern images :

Create a new section “loadimages” and an empty page linked to this section.

Fill the page with this code :

[<txp:images break=",">
{"url":"/images/Site_400/<txp:image_info type="id" /><txp:image_info type="ext" />",
"thumb":"/images/carre_160/<txp:image_info type="id" /><txp:image_info type="ext" />",
"name":"<txp:image_info type="alt" />",
"type":"images",
"id":"<txp:image_info type="id" />",
"tag":"<txp:image_info type="category" />"}
</txp:images>]

And add this param when you call the editor :

imageManagerLoadURL: "/loadimages"

Offline

#6 2016-08-06 19:13:15

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

Re: Save button hidden with Froala WYSIWYG editor

Awesome! Can’t wait to try this out. I wonder if it would work to use rah_external_output instead of creating a new section?

Offline

#7 2016-08-07 19:47:31

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Save button hidden with Froala WYSIWYG editor

John,
How do you insert the Froala editor code in the admin ?
Do you hack the TXP code or have you an other way to proceed ?

On my side, I hack a kuo_ plugin who insert the scripts at the end of head.

Offline

Board footer

Powered by FluxBB