I much prefer TinyMCE, and fortunately, changing from NiceEdit (not so nice I think) to TinyMCE is very easy.

Apart from familiarity, it offers more options and functionality, and functions in a better way than NiceEdit.
Want to give it a try?
First, download the jQuery version of TinyMCE - to make it easier, you can get it from me here
Unpack this archive, into your root/includes directory, so it in installed as follows:
public_html/includes/tiny_mce
There will be further subdirectories under the tiny_mce directory
Now, open the file /includes/templates/header.tpl
Around line 15, find and DELETE the entry
<script type="text/javascript" src="{virtual_path}includes/js/nicedit.js"></script>
That's right, delete it, erase it, cast it into cyber space.
Now, still in /includes/templates/header.tpl paste the following, just about where you deleted the other line.
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
plugins : "inlinepopups",
dialog_type : "modal",
theme : "advanced",
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
</script>
You can now save and close /includes/templates/header.tpl
Now, all you need to do is modify two template files:
/includes/templates/pages_edit.tpl
and
/includes/templates/news_edit.tpl
Note, if you have my vldArticles mod, then you would also have to change
/includes/templates/articles_edit.tpl
Towards the bottom of the files you will find an entry such as this:
$(document).ready(function(){
new nicEditor({
iconsPath: '{virtual_path}includes/js/nicicons.gif',
buttonList:
}).panelInstance('field_body');
});
</script>
Delete this entire selection, close and save your files, and voila, you should now have a much better textarea editor than NiceEdit.
Cheers





Comments
fatlizard
I am not sure where you have tried using this, but it is somewhere in the system that I personally have not changed, so cannot give you a standard answer to resolve this.
It looks like the message is being sent as text, not HTML.
Are your preferences set to send messages as HTML?
The VLD source uses an email class that sends messages as HTML or text depending on what your preferences have been set to - check this in your CP.
dezchilds
dezchilds
<p style="text-align: right;">HI ALL HO salam</p>
<p style="text-align: right;">thank </p>
what is problem please please please help me
fatlizard
The solution is a simple edit to the TinyMCE configuration.
Open your /includes/templates/header.tpl and find the TinyMCE init code
At the end simply add convert_urls : false, so that the code block finishes like this:
tinyMCE.init({
:: // other stuff in here
:: // other stuff in here
theme_advanced_resizing : true,
convert_urls : false
});
Be sure to add a comma at the end of the preceding line.
When you now add an image using TinyMCE, use the full server/site address, for example:
http://mydomain.com/templates/name/media/image.jpg
Because we changed TinyMCE configuration, this will now be saved as the full image address, allowing it to show in the browser.
fatlizard
Please check post on vldPersonals forum (http://www.vldpersonals.com/forum/viewtopic.php?pid=34756#p34756)
misulicus
when i try to send a message using the communicate link in CP
it doesent loads the messages body at all
r0b33
wclang
Pages
1 2Log in to leave a comment