[eluser]Unknown[/eluser]
I'm trying to create a simple CMS with CodeIgniter. I decided to work with Tinymce for the text area's but i got some problems implementing it.
This is how it tried to set it up:
folder structure:
Code:
- public
-- css
-- js
-- images
- system
-- <all CI folders here>
I wrote this helper to point to the public folder:
Code:
function asset_url(){
return base_url().'public/';
}
The tinymce init file:
Code:
[removed]
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "imagemanager,filemanager,insertdatetime,preview,emotions,visualchars,nonbreaking",
theme_advanced_buttons1_add: 'insertimage,insertfile',
theme_advanced_buttons2_add: 'separator,forecolor,backcolor',
theme_advanced_buttons3_add: 'emotions,insertdate,inserttime,preview,visualchars,nonbreaking',
theme_advanced_disable: "styleselect,formatselect,removeformat",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
theme_advanced_toolbar_align : "left",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true,
apply_source_formatting : true,
spellchecker_languages : "+English=en",
extended_valid_elements :"img[src|border=0|alt|title|width|height|align|name],"
+"a[href|target|name|title],"
+"p,"
invalid_elements: "table,span,tr,td,tbody,font"
});
[removed]
This is my view:
Code:
<html>
<head>
[removed][removed]
[removed][removed]
</head>
<body>
<form method="post" acti>
<textarea name="content" >
</textarea>
</form>
</body>
</html>
So right now it just shows an empty normal textarea instead of the tinymce editor. The JS files are getting loaded, no errors there.
hopefully someone can give me a clue![/code]