| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
AleXp 03.03.2006 12:38
^switch[УСЛОВИЕ]{
^case[DEFAULT]{}
^case[editor]{
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextArea' ) ^;
oFCKeditor.BasePath = '/FCKeditor/' ^;
oFCKeditor.ReplaceTextarea() ^;
}
</script>
$fValue[^file::load[text;/FCKeditor/start.txt]]
$Value[$fValue.text]
<form action="^GetPagePath[]?mode=editok" method="post" target="_blank">
<textarea id="MyTextArea" name="MyTextArea" style="width: 100%^; height: 250px">^untaint[as-is]{$Value}</textarea>
<input type="submit" value="Сохранить">
</form>
}