Loading External Templates in TinyMCE

Hello,

I've added "Templates" to TinyMCE.

Is there anyone who knows how to load external templates?

I don't know what and in which files I need to do some editing.

TinyMCE homepage hasn't helped and the below Googled I don't find the files to edit.

Please help.

http://community.impresscms.org/modules/imblogging/post.php?post_id=248

7.1 My favorite number
Quote · 5 May 2013

TinyMCE skin can be changed by editing skin field in sys_objects_editor table, skins available by default are default and o2k7.

Clear db cache after the change.

Rules → http://www.boonex.com/terms
Quote · 6 May 2013

Thanks for replying Alex!

It is however not the skin that I think needs the change.

When I click on Template icon I expect to be able to choose between several different pre-set templates.

These preset templates should be external files stored somewhere.

I need to edit a or some files as well.

templateicon.jpg · 6.1K · 302 views
7.1 My favorite number
Quote · 6 May 2013

For more advances modifications of TinyMCE editor you need to edit templates/base/scripts/BxBaseEditorTinyMCE.php file.

Rules → http://www.boonex.com/terms
Quote · 7 May 2013

Dear Alex,
in  
templates/base/scripts/BxBaseEditorTinyMCE.php   I know how to add buttons etc.
But don't know how to call the external template file and where to put the command.

In the link above they give this instruction but that isn't helping me, not knowing where to place it or if it's the right command to use here.

 

You need load the external template files.

About line 231 just after force_br_newlines add:

template_external_list_url: "' . ICMS_URL . '/uploads/liste.js",

The content for that file will be:

var tinyMCETemplateList = new Array(// Name, URL ["Product 1", "http://yoursite/uploads/tiny_templates/product1.html"],["Product 2", "http://yoursite/uploads/tiny_templates/product2.html"]);


3.- Create your template files (they must to be in html format, but without  html,  body or head tags, the root folder and submit liste.js file.

7.1 My favorite number
Quote · 7 May 2013
 
 
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.