Inserting HTML into articles

moe78z posted 14th of May 2008 in Community Voice. 5 comments.
Hi everyone, is it possible to insert HTML codes into Articles? The tinymce editor doesn't have any way for me to put in HTML codes. Is that intentional or is there anyway I can change the setting so that I can insert HTML codes onto my articles? One example is to insert hyperlinks in my article. Is this possible?
 
Comments
·Oldest
·Top
Please login to post a comment.
LHAdmin
Make backup of file, then

go to admin/articles.php. revise line 51 by taking out link,unlink.
moe78z
Thanks that worked for the links! However, how about editing in HTML? I know that TinyMCE editor has a HTML button as I use it with drupal. Is it possible to activate the HTML button too?
moe78z
Ok nvm...I got it done! :)
moe78z
Basically I modified the settings for the TinyMCE Editor in /admin/articles.php as such:

1. Look for the lines from:
tinyMCE.init({
.
.
.
.
.
.
<!-- /tinyMCE -->
';

2. Copy the script below and replace it accordingly.

tinyMCE.init({
mode : "textareas",
theme : "advanced",
content_css : "' . $site['base'] . 'css/tiny_mce.css",
editor_selector : "articl",
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",
theme_advanced_buttons1_add see more : "fontselect,fontsizeselect,code",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_disable : "insertanchor,image,subscript,superscript,help,anchor,styleselect",
plugi2n_insertdate_dateFormat : "%Y-%m-%d",
plugi2n_insertdate_timeFormat : "%H:%M:%S",
paste_use_dialog : false,
theme_advanced_resizing : false,
theme_advanced_resize_horizontal : false,
theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
paste_auto_cleanup_on_paste : true,
paste_convert_headers_to_strong : false,


});
</script>
<!-- /tinyMCE -->

';

3. Save and upload the file. Hope it works for you too :)
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.067037105560303