cancel
Showing results for 
Search instead for 
Did you mean: 

xs:string editor => 'View Source'

kooktroop
Champ in-the-making
Champ in-the-making
One of the limitations with the xs:string editor in WCM is that you can't view the source.

At the moment I'm using a partially modified version of HTML so that I can reference bits of XML etc. Rather than having to extend the xs:string rich text editor it would be a lot easier to just edit the source.

As an example, I want the resulting output to look like;


<!– snippet, let's say the element we're working in is an xs:string –>
<p>
This is a link to an xml element, <a idref="other_content">Other Content</a>.
</p>


Something like the functionality of the button in the top left of the FCKeditor (http://www.fckeditor.net/) would allow me to do what I need to do straight away.

I wanted to post here before going to JIRA. Is there a way to do this that I am not seeing?
1 REPLY 1

eyestreet
Champ in-the-making
Champ in-the-making
Hey there kooktroop,

Yes you can do this.  Search your 'alfresco' home directory for this file:

xforms.js

Then change this line:

theme_advanced_buttons1:
"bold,italic,underline,strikethrough,separator,fontselect,fontsizeselect,code"

In your installation you won't have 'code' there, add it, and be sure to clear cache on your browser.

Thanks,

Brent Kastner
Eye Street