Is it possible to get 2 FCKeditors in 1 screen. I need 1 editor for the dutch content on the page, and the other one for the english content.
At this moment, only the bottom textarea has the FCKeditor, and the top area is empty.
The code so far:
<label>Content ENG</label><textarea id='content_en' name='content_en'></textarea>
<script type='text/javascript'>
window.onload = function() {
var editor_content_en = new FCKeditor('content_en');
editor_content_en.InstanceName = 'content_en';
editor_content_en.BasePath = ' /digitainment/resources/javascripts/fckeditor/';
editor_content_en.Width = '1000px';
editor_content_en.ToolbarSet = 'Default';
editor_content_en.ReplaceTextarea();
}
</script><br />
<label>Content NL</label><textarea id='content_nl' name='content_nl'>Hier komt het dagprogramma<br/></textarea>
<script type='text/javascript'>
window.onload = function() {
var editor_content_nl = new FCKeditor('content_nl');
editor_content_nl.InstanceName = 'content_nl';
editor_content_nl.BasePath = ' /digitainment/resources/javascripts/fckeditor/';
editor_content_nl.Width = '1000px';
editor_content_nl.ToolbarSet = 'Default';
editor_content_nl.ReplaceTextarea();
}
</script><br />
Can someone help me out?
At this moment, only the bottom textarea has the FCKeditor, and the top area is empty.
The code so far:
<label>Content ENG</label><textarea id='content_en' name='content_en'></textarea>
<script type='text/javascript'>
window.onload = function() {
var editor_content_en = new FCKeditor('content_en');
editor_content_en.InstanceName = 'content_en';
editor_content_en.BasePath = ' /digitainment/resources/javascripts/fckeditor/';
editor_content_en.Width = '1000px';
editor_content_en.ToolbarSet = 'Default';
editor_content_en.ReplaceTextarea();
}
</script><br />
<label>Content NL</label><textarea id='content_nl' name='content_nl'>Hier komt het dagprogramma<br/></textarea>
<script type='text/javascript'>
window.onload = function() {
var editor_content_nl = new FCKeditor('content_nl');
editor_content_nl.InstanceName = 'content_nl';
editor_content_nl.BasePath = ' /digitainment/resources/javascripts/fckeditor/';
editor_content_nl.Width = '1000px';
editor_content_nl.ToolbarSet = 'Default';
editor_content_nl.ReplaceTextarea();
}
</script><br />
Can someone help me out?
RE: Two editors in one webpage not working?
<label>Content ENG</label>
<script type="text/javascript">
var editor = new FCKeditor( 'content_en' );
editor.BasePath = '/digitainment/resources/javascripts/fckeditor/';
editor.Value = 'english content ...';
editor.Width = '1000px';
editor.ToolbarSet = 'Default';
editor.Create() ;
</script>
<label>Content NL</label>
<script type="text/javascript">
var editor = new FCKeditor( 'content_nl' );
editor.BasePath = '/digitainment/resources/javascripts/fckeditor/';
editor.Value = 'dutch content ...';
editor.Width = '1000px';
editor.ToolbarSet = 'Default';
editor.Create() ;
</script>
RE: Two editors in one webpage not working?
Hehe, thanks a lot...
I was probally so tired that I didn't see that one.
Once I turned my computer off I realised what I did wrong, but you gave me the perfect solution anyway
Thnx!
RE: Two editors in one webpage not working?
I need to give de editor some XHTML code, it is not possible to do this via the value variable because of the _HTMLEncode function. Are there any other ways?
RE: Two editors in one webpage not working?
RE: Two editors in one webpage not working?
RE: Two editors in one webpage not working?
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'summary')
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'body')
oFCKeditor.ReplaceTextarea() ;
}
</script>