<![CDATA[ TinyMce and predefined templates setup - My Forums]]> https://forums.modx.com/thread/?thread=34308 <![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188222 Quote from: mrhaw at Feb 13, 2009, 12:02 AM

http://modxcms.com/forums/index.php/topic,31097.msg188847.html#msg188847
Thanks!! grin]]>
Sylvaticus Feb 13, 2009, 12:59 AM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188222
<![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188221 http://modxcms.com/forums/index.php/topic,31097.msg188847.html#msg188847]]> mrhaw Feb 12, 2009, 06:02 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188221 <![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188220 Sylvaticus Feb 12, 2009, 05:28 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188220 <![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188219
it workes perfect now smiley. finally i have the right tool for the job, it’s a shame modX don’t support page segments/elements so you can place x amount of "page blocks/segments" to the same page with diffrent templates, but then it’s nice we have tinyMce for that.

hmm i should make a tutorial when i get that far. smiley
Thanks again Breezer nice job.
///Mads ny]]>
madsny Oct 26, 2008, 05:32 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188219
<![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188218
This modification allows custom pre made templates to be used in your tinymce editor

Unzip the package on your local comp, file structure should be as follows:

-- tinymce_modx_templates
* tinymce_templates_howto.txt

the following folder structure matches the tinymce3101 in the plugins folder

tinymce3101
- tinymce.functions.php (modified and commented, so back up your original in case)
* lists/ + files
* templates/ + files
* plugins/template/ (this folder may already be in there, I added it just in case)


Upload the files in the tinymce3101 folder to your server keeping the same folder structure

The following additions are only needed if you use the editor in custom mode
Go into your manager/configuration/interface and features/
at the end of the custom plugins field, add ,template
at the end of the buttons2 line add ,template

To add new templates, create your new template and save it in the templates/ folder.
Modify the lists/template_list.js file so your new template is listed.

There will be a Template icon available now on the bottom row of your tinymce editor.]]>
breezer Oct 26, 2008, 04:06 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188218
<![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188217 Tried it but no effect, also tried to add some links to the php code of the tinyMce config, but no result.
fixing this is way out of my league, pls. anyone help making the template’s in tinyMce usable sad...

]]>
madsny Oct 26, 2008, 10:20 AM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188217
<![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188216 .

I was thinking about the same, but i don’t know if it would work or break the tinyMce editor :/.
I really don’t need to be able to edit the html template for the tinyMce, it’s okay it’s locatede af static html pages, a bonus in that direction would be that users can’t delete them and thereby mess up the design.

I’ll try to overwrite the TinyMce and see if it works.
More ideas are welcome.]]>
madsny Oct 26, 2008, 09:52 AM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188216
<![CDATA[Re: TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188215
http://tinymce.moxiecode.com/

]]>
breezer Oct 25, 2008, 08:54 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188215
<![CDATA[TinyMce and predefined templates setup]]> https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188214
Im trying to make the tinyMce’s template function to work, so i easily can add html formattede segments to my content pages on demand, like a div structure with dummy text the user then must be able to change.

I’ve searched the forum and net for a solution but still no luck, the best sugestion i’ve got is this.
http://modxcms.com/forums/index.php?topic=5403.345
(search for template on the page)

i’ve followed it carefully and tried million of things to make it work, but no result.

another idea i read about is usine TV’s, but i can’t see how this should make it possible to past prebuild html code into my editor.

so did anyone make it possible to pick a template from the tinyMce template dropdown ?

Kind regards:
Mads ny]]>
madsny Oct 25, 2008, 07:47 PM https://forums.modx.com/thread/34308/tinymce-and-predefined-templates-setup#dis-post-188214