Add scrip inside tpl file

 

{literal}

tinymce.init(
{
selector:’textarea’,
menubar : false,
max_chars : 800,
setup : function(ed) {
ed.on(‘keydown’, function(e) {
var tinymax, tinylen, htmlcount;
tinymax = this.settings.max_chars;
tinylen = $(ed.getBody()).text().length;
if (tinylen > tinymax) {
alert(“prestashop error it cannot take more than 800 characters”);
e.preventDefault();
e.stopPropagation();
return false;
}
});
}
});

{/literal}

  Like
Author: bm on January 10, 2014
Category: prestashop

Your comment:

Your Name

Comment:




Last articles