[opencms-dev] TinyMCE editor creates absolute links
Paul-Inge Flakstad
flakstad at npolar.no
Mon May 7 12:12:25 CEST 2012
Hi Georgi,
Thanks for your quick reply, it was very helpful. :)
Cheers,
Paul
-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Georgi Naplatanov
Sent: 4. mai 2012 15:59
To: The OpenCms mailing list
Subject: Re: [opencms-dev] TinyMCE editor creates absolute links
Hi Paul.
On 05/04/2012 03:50 PM, Paul-Inge Flakstad wrote:
>
>
> Hi all,
>
> I’m testing out 8.0.4, and I’ve only used the new TinyMCE editor a few
> times now, but so far it seems more user-friendly than the old
> FCKEditor. Good job!
>
> However, I’ve got some questions, in order of importance:
>
> 1.) How can I keep internal links relative?
> Internal links are made absolute by the editor. (E.g.
> “/folder/file.html” becomes “http://www.site.com/folder/file.html”), and
> having absolute links to internal resources won’t do – the workplace
> domian is not identical to the site domain. As far as I can tell, the
> relevant setting in TinyMCE are “relative_urls” (and possibly also
> “document_base_url”), but I can’t seem to find it anywhere. Help..?
>
> 2.) Can I configure the editor height in the XSD?
>
> This was a useful option when using the FCKEditor, but it doesn’t seem
> to work with TinyMCE out-of-the-box.
It is a bug. Setting height is not implemented in 8.0.4 for TinyMCE xml
content editor.
> 3.) Any pointers on how I would go about adding custom toolbar buttons /
> keyboard shortcuts?
You can add/remove buttons in the same way as for FCKEditor.
Custom shortcuts can be added in file
/system/workplace/resources/components/widgets/tinymce.js, function
addCustomShortcuts(editor) for xml content editor and in
/system/workplace/editors/tinymce/editor.jsp for xml page editor.
> Cheers,
>
> Paul
>
Best regards
Georgi
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list