var editor = null; _editor_url = baseUrl+"/htmlarea"; _editor_lang = "fr"; function initEditor(ta) { if (htmlareapopup) { textarea = document.getElementById(ta); textarea.style.display = "none"; document.write('
'+textarea.value+'
'); document.write('[ Modifier ]'); } else { var editor = new HTMLArea(ta);var cfg = editor.config; var height = "250px"; var width = "560px"; cfg.toolbar = [ [ "formatblock", "space", "bold", "italic", "underline", "strikethrough", "separator", "copy", "cut", "paste", "separator", "killword", "separator" ], [ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator", "forecolor", "hilitecolor", "separator", "inserthorizontalrule", "createlink", "linkclean", "insertimage", "inserttable", "separator", "htmlmode", "separator", "popupeditor", "separator"] ]; cfg.formatblock = { "Aucun Style":"p", "Titre":"h1", "Sous-Titre":"h2", "Normal": "p"}; cfg.killWordOnPaste = false; // cfg.height = "550px"; //cfg.width = "800px"; cfg.height = height; if (width != null) cfg.width = width; else cfg.width = "800px"; editor.registerPlugin(TableOperations); editor.registerPlugin(CSS, { combos : [ { label: "Style", options: { "Aucun Style":"", "Normal":"texte", "Sous Titre non surligné":"SousTitre_non_surligne", "Texte Style 2":"htmlarea_style2", "Liste Puce Style 1":"htmlarea_puce_style1", "Liste Puce Style 2":"htmlarea_puce_style2", "Légende":"legende" } } ] }); editor.config.pageStyle = "@import url('/static/chrd/vdl.css');@import url('/static/chrd/textes.css');" editor.generate(); } }