@editor You seem to know everything ! Works great, many thanks.
I don't know everything. I just know how and where to search.
Â
For webmasters that use Osclass 5.x or later, the same applies.
Open oc-includes/osclass/functions.php and find
<script>
tinyMCE.init({
mode: 'none',
theme_advanced_toolbar_align: 'left',
theme_advanced_toolbar_location: 'top',
theme_advanced_buttons1_add: 'forecolorpicker,fontsizeselect',
theme_advanced_buttons2_add: 'media',
plugins: 'advlist autolink lists link charmap preview anchor searchreplace visualblocks code fullscreen table paste'
});
$(function () {
$('textarea[id^=description]').each(function () {
tinyMCE.execCommand('mceAddEditor', true, this.id);
});
});
</script>
Â
and change it to
Â
<script>
tinyMCE.init({
mode: 'none',
theme_advanced_toolbar_align: 'left',
theme_advanced_toolbar_location: 'top',
theme_advanced_buttons1_add: 'forecolorpicker,fontsizeselect',
theme_advanced_buttons2_add: 'media',
extended_valid_elements : "a[href|target=_blank|rel=nofollow]",
plugins: 'advlist autolink lists link charmap preview anchor searchreplace visualblocks code fullscreen table paste'
});
$(function () {
$('textarea[id^=description]').each(function () {
tinyMCE.execCommand('mceAddEditor', true, this.id);
});
});
</script>
Â
I wonder if there is an other and easier way to do this. Because in each update, you will have to make those changes.
If there a way to open any link in posts and custom fields in a new window and of cource make them nofollow?
I wonder if there is an other and easier way to do this. Because in each update, you will have to make those changes.
If there a way to open any link in posts and custom fields in a new window and of cource make them nofollow?
Probably there is, but we are not developers here. So we can't help with this.
