Quote from: donshakespeare at Nov 01, 2016, 02:43 PMRE: samg
SKIN_URL https://www.tinymce.com/docs/configure/editor-appearance/#skin_url
SKIN CREATOR http://skin.tinymce.com/ .... https://www.tinymce.com/docs/advanced/creating-a-skin/
Set skin_url to blank to use TinyMCE's default
TinymceWrapper skins locations at http://example.com/assets/components/tinymcewrapper/tinymceskins
CHANGING SKIN MODX
Good, you changed fileManagerTopNavModalSkin
In your tree, find this chunk: TinymceWrapper > TinyMCE > Backend > TinymceWrapperCommonCode
Change skin_url: MODx.config.assets_url+'components/tinymcewrapper/tinymceskins/modxPericles',
...
CHANGING LINK_LIST
....
Next line in same chunk you will find this call [[$TinymceWrapperLinkList]]
TinymceWrapperLinkList chunk content
[[-remove the pdoMenu dash prefix if you have pdoMenu installed]]
[[-pdoMenu?
&context=`web`
&parents=`39,5,9`
&level=`100`
&limit=`1000`
&showHidden =`1`
&showUnpublished =`1`
&tplOuter=`@INLINE [[+wrapper]]`
&tpl=`@INLINE {title: "[[+menutitle]]", value: "\[\[~[[+id]]\]\]"},`
&tplParentRow=`@INLINE {title: "[[+menutitle]]", value: "\[\[~[[+id]]\]\]", menu:[ [[+wrapper]] ]},`
&sortby=`menuindex`
&sortdir=`ASC`
&checkPermissions=`load,list,view`
]]
Change &limit=`1000` to a smaller number
See getResources version
https://forums.modx.com/thread/97694/support-comments-for-tinymcewrapper?page=29#dis-post-544434
This is how you manually populate the link_list without MODX' help
https://www.tinymce.com/docs/plugins/link/#link_list
Cheers
Sorry, Don-S but I'm pretty lost.
1. I had changed
fileManagerTopNavModalSkin back to 'modxPericles' and yet when I did this:
Change [i]skin_url: MODx.config.assets_url+'components/tinymcewrapper/tinymceskins/modxPericles',[/i]
it worked anyhow. Why wasn't the change to the plug-in required?
2. Regarding Link List
I still don't know how to enable it. Isn't there a spec somewhere that says Linklist = Yes or some such thing?
3. Again, regarding Link List, my
TinymceWrapperCommonCode is nothing at all like yours above. mine is:
skin_url: MODx.config.assets_url+'components/tinymcewrapper/tinymceskins/charcoal',
link_list:[
[[$TinymceWrapperLinkList]]
],
relative_urls: false,
remove_script_host: false,
document_base_url: MODx.config.site_url,
link_class_list: [
{title: 'None', value: ''},
{title: 'prettyLink', value: 'prettyLink'},
{title: 'colorBox', value: 'colorBox'}
],
image_class_list: [
{title: 'None', value: ''},
{title: 'prettyPhoto', value: 'prettyPhoto'},
{title: 'colorBox', value: 'colorBox'}
],
image_caption: true,
browser_spellcheck: true,
gecko_spellcheck: true,
paste_data_images: false,
menubar: false,
statusbar: false,
image_advtab: true,
setup: function(editor) {
editor.on('keydown', function(evt) {
if (evt.keyCode == 83 && evt.ctrlKey && !evt.shiftKey && !evt.altKey && !evt.metaKey) {//ctrl + s = save
evt.preventDefault();
$('#modx-abtn-save button').trigger("click");
}
if (evt.keyCode == 27) { //escape key = remove fullscreen
evt.preventDefault();
if ($('.mce-fullscreen').length) {
tinymce.activeEditor.execCommand("mceFullscreen")
}
}
});
editor.on("init",function() { //float fullscreen link
containerId = $(editor.getContainer()).attr("id");
$("#"+containerId+" .mce-i-fullscreen").parent().parent().parent().parent().css("float","right");
});
},
external_plugins:{
twAceEditor: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twAceEditor.js",
// twCodeMirror: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twCodeMirror.js",
// bubbleBar: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/tinymceBubbleBar.js",
// twExoticMarkdownEditor: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twExoticMarkdownEditor.js",
modxMagicHoverLink: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/modxMagicHoverLink.js",
twPreCodeManager: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twPreCodeManager.js"
},
file_browser_callback : autoFileBrowser,
//leave trailing comma
4. Where do I go to change the configuration of the link list such as the font size and interline spacing?
Sorry ... Sam