<![CDATA[ TinyMCE template plugin - My Forums]]> https://forums.modx.com/thread/?thread=76466 <![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-543064 TinymceWrapper: http://modx.com/extras/package/tinymcewrapper
Support thread: http://forums.modx.com/thread/97694/support-comments-for-tinymcewrapper

P.S
There is no such thing as "Classic TinyMCE" wink]]>
donshakespeare Jul 06, 2016, 01:32 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-543064
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-543012
Just gave a try to your component.

Unfortunately, I was not able to see anything working out of the box.

As I test over an existing installation with classic TinyMCE and code mirror. the best I got once deactivated codemiror and tinyMCe was a nes old shool rte menu bar for the description field of a content.
and no more RTE for main content.
once I reactivated tinyMCE.... same thing.

I had to reverse, uninstalling TinymceWrapper

]]>
elz064 Jul 04, 2016, 03:00 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-543012
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542861
https://www.tinymce.com/docs/plugins/template/
The official TinyMCE accomplishes this with a few added words to your existing setup
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "template",
  menubar: "insert",
  toolbar: "template"
  templates: [
    {title: 'Some title 1', description: 'Some desc 1', content: 'My content'},
    {title: 'Some title 2', description: 'Some desc 2', url: 'development.html'}
  ]
});
Your friend: http://modx.com/extras/package/tinymcewrapper]]>
donshakespeare Jun 27, 2016, 10:12 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542861
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542860 Quote from: panther at Jun 27, 2016, 11:32 AM
@keidzi Tahnk you verry much! This was the correct answer:
Found a solution. You need to provide some class name for this setting: tiny.template_selected_content_classes

For everyone who is wondering how he could have the Content of his Template be inserted into the editor window, please read comment #13
https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-488076

I am glad someone found this solution!
What the "tiny.template_selected_content_classes" are really good for I could not find out.

hmm.

Adding a .css class is known, one css class for each Tmce template you need. But this never worked for me. never.]]>
elz064 Jun 27, 2016, 09:51 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542860
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542855
Found a solution. You need to provide some class name for this setting: tiny.template_selected_content_classes

For everyone who is wondering how he could have the Content of his Template be inserted into the editor window, please read comment #13
https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-488076

I am glad someone found this solution!
What the "tiny.template_selected_content_classes" are really good for I could not find out.]]>
panther Jun 27, 2016, 06:32 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-542855
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-522992 http://forums.modx.com/thread/96108/tinymce-init-doesn-039-t-run#dis-post-522931, my experience with chrome issues and tinyMCE might apply as well for you. I use classes, and everything is ok. Only chrome messes up tinyMCE sometimes...
Have you tried other browsers?]]>
wishbone Mar 19, 2015, 05:01 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-522992
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-500051
I've succefully created a template and updated the settings for TinyMCE on my MODX 2.2.8pl site. I'm using Newspublisher in the front end to create and update resources.

Everything is fine when I use my admistrator account to test and the templates appear in the drop down list, however I have an number of other users who have different permissions and they're not able to see the template options. This is the error message if I look at Chrome debug:

Failed to load resource: the server responded with a status of 401 (Not Authorized)http://www.mywebsite.com/assets/components/tinymce/template.list.php


I thought this was a permissions issue, so I updated the user to Adminstrator and flushed permissions to log in again, but still not able to see the Templates, even with Admins priveleges. Perhaps I'm missing something with permissions? I still find it tricky configuring users. I'm really stuck trying to figure this one out, so if anyone has any suggestions that would be cool.

Edit: Something I've just considered is that my other users are HybridAuth users, so have the Class haUser instead of modUser. This is the only difference I can find at the moment, but still can't fix it.]]>
dave-b Jun 11, 2014, 04:27 PM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-500051
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-488076
For example, my template contained:
<ol class="steps">
    <li>Step1</li>
    <li>Step2</li>
</ol>


As usual - it showed up in preview, but after clicking Insert button everything was gone. Nothing really was inserted.

After removing class atribute, my template looked like this:
<ol>
    <li>Step1</li>
    <li>Step2</li>
</ol>


This was working fine. But didn't satisfied my needs. I desperately needed a template with class attribute.

Found a solution. You need to provide some class name for this setting: tiny.template_selected_content_classes
It's empty by default and that's why template content is stripped. When you enter some CSS class name (I used fake one), everything works great again. So my setting looked like this:
tiny.template_selected_content_classes  .fakeCssClass


Important! Dot (.) before class name is the key. When using class name like this: fakeCssClass (without dot in front), nothing worked.

Hope this helps!]]>
keidzi Jan 23, 2014, 02:31 AM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-488076
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-480609
Other things I changed in the tinymce settings, maybe one of these (or some combination) did it:

Element Format tiny.element_format = xhtml
Forced Root Block tiny.forced_root_block = null
Editor Theme tiny.editor_theme = advanced
Template List tiny.template_list = 2-Col:assets/tintemplates/2-column.html:2 Column Template
Template Selected Content Classes = tiny.template_selected_content_classes = .bioText

]]>
lowelife Oct 18, 2013, 09:17 PM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-480609
<![CDATA[Re: TinyMCE template plugin]]> https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-480574 lucy Oct 18, 2013, 01:28 PM https://forums.modx.com/thread/76466/tinymce-template-plugin?page=2#dis-post-480574