diff --git a/main/document/create_document.php b/main/document/create_document.php
index c60261dd2e..df454d9f95 100644
--- a/main/document/create_document.php
+++ b/main/document/create_document.php
@@ -1,5 +1,5 @@
var temp2=false;
var use_document_title='.api_get_setting('use_document_title').';
+ function launch_templates(){
+ window.frames[0].FCKToolbarItems.GetItem("Templates").Click();
+ }
+
function FCKeditor_OnComplete( editorInstance )
{
editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ;
@@ -270,7 +274,7 @@ else
$form->addElement('submit', 'submit', get_lang('Ok'));
// HTML-editor
-$form->add_html_editor('content', get_lang('Content'), false, true);
+$form->add_html_editor('content', '
', false, true);
// Comment-field
//$form->addElement('textarea', 'comment', get_lang('Comment'), array ('rows' => 5, 'cols' => 50));
$form->addElement('submit', 'submit', get_lang('Ok'));
diff --git a/main/document/edit_document.php b/main/document/edit_document.php
index f8dc9bfcdf..2631992b6c 100644
--- a/main/document/edit_document.php
+++ b/main/document/edit_document.php
@@ -1,4 +1,4 @@
-
+function launch_templates(){
+ window.frames[0].FCKToolbarItems.GetItem("Templates").Click();
+}
+';
$_SESSION['whereami'] = 'document/create';
$this_section=SECTION_COURSES;
@@ -507,7 +513,7 @@ if($extension == "htm" || $extension == "html")
$form->addElement('hidden','formSent');
$defaults['formSent'] = 1;
$form->addElement('submit','submit',get_lang('Ok'));
- $form->add_html_editor('texte',get_lang('Content'),false,true);
+ $form->add_html_editor('texte','
',false,true);
$defaults['texte'] = $texte;
}
if(!$group_document)
diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php
index 6f9220d017..e8be55524a 100644
--- a/main/newscorm/learnpath.class.php
+++ b/main/newscorm/learnpath.class.php
@@ -5856,7 +5856,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('
{label}
{element}','content_lp');
- $form->addElement('html_editor','content_lp',get_lang("Content")." :");
+ $form->addElement('html_editor','content_lp','
');
$defaults["content_lp"]=$content;
}
diff --git a/main/newscorm/lp_add_item.php b/main/newscorm/lp_add_item.php
index 70af4b67c8..88e6417055 100644
--- a/main/newscorm/lp_add_item.php
+++ b/main/newscorm/lp_add_item.php
@@ -70,6 +70,13 @@ $htmlHeadXtra[] = '"; //will be a merged with original learnpath.css
$htmlHeadXtra[] = ""; //will be moved
$htmlHeadXtra[] = ""; //will be moved
+$htmlHeadXtra[] = '
+';
+
$htmlHeadXtra[] = $_SESSION['oLP']->create_js();
/*
diff --git a/main/newscorm/lp_edit_item.php b/main/newscorm/lp_edit_item.php
index 06e5f3416a..e8be891d7c 100644
--- a/main/newscorm/lp_edit_item.php
+++ b/main/newscorm/lp_edit_item.php
@@ -69,7 +69,12 @@ $htmlHeadXtra[] = '"; //will be a merged with original learnpath.css
$htmlHeadXtra[] = ""; //will be moved
$htmlHeadXtra[] = ""; //will be moved
-
+$htmlHeadXtra[] = '
+';
$htmlHeadXtra[] = $_SESSION['oLP']->create_js();
/*
-----------------------------------------------------------