Forums: How Do You Setup Predefined Templates - Forums

Jump to content

Page 1 of 1

How Do You Setup Predefined Templates How do you setup Predefined Templates

#1 User is offline   Carey Sadowski 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 23-February 06
  • Gender:Male
  • Location:West Virginia

Posted 27 May 2013 - 01:30 PM

How do you setup Predefined Templates so when a user selects the Template menu button, a list of templates appears?

I'm not finding anything on WHERE to initialize this setting.

Any help would be greatly appreciated!

Thanks!
0

#2 User is online   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16112
  • Joined: 03-February 03
  • Gender:Male

Posted 28 May 2013 - 11:36 PM

Not a TinyMCE expert here but hope this article can help:
http://www.tinymce.c...ic.php?id=14507
Best regards,
Sergey Kornilov
0

#3 User is offline   Carey Sadowski 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 23-February 06
  • Gender:Male
  • Location:West Virginia

Posted 01 June 2013 - 09:49 AM

View Postadmin, on 28 May 2013 - 07:36 PM, said:

Not a TinyMCE expert here but hope this article can help:
http://www.tinymce.c...ic.php?id=14507


Found out where this goes to make it work! In the ASPRunnerProPlugins/Edit folder there is a file named EditTinyMCE.js

In this file in the init function is where you would add this information. Here is an example:

tinyMCE.init({
// General options
mode : "exact",
elements : this.valContId,
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,visualblocks",

//Templates
template_templates : [
{
title : "Testig Templates",
src : "test_one.html",
description : "Testing templates for users."
}
],


I don't believe this version handles an external template list; however, I believe by downloading a more recent version of TinyMCE along with this plugin it's possible. It will require some detail work in renaming files.

I highly recommend this great plugin!
0

#4 User is offline   keithh0427 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 38
  • Joined: 29-December 04

Posted 06 October 2017 - 05:05 PM

This topic is 4 years old, so wondering if this forum is still active.

I have a similar problem.

I have managed to be able to list the templates, but cannot get them to insert into the editor window.

Anybody?
0

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users