We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Problem

MarkItUp access to asset folder in Perch 3

I have to come back on customizing the markitup editor after upgrading from Perch 2 to 3. My latest thread on this can be found here: http://forum.grabaperch.com/forum/10-05-2017-customize-markitup-in-perch-3 I just realized that the access to the asset-folder is no longer available. I cannot upload an image neither attach a file. When clicking the icon nothing happens. I am on Perch 3.0.10. Maybe the reason is because Perch 3 handels the asset-upload slightly different? Here is my config-file.

Perch.UserConfig.markitup = function(){

var get = function(profile, config, field) {

return {
nameSpace: 'markdown',
previewParserPath: '',
onTab: {keepDefault:false, openWith:' '},
onShiftEnter: {keepDefault:false, openWith:'\n\n'},
markupSet: [
{name:'Bold', className:'fa fa-bold', key:'B', openWith:'**', closeWith:'**'},
{name:'Italic', className:'fa fa-italic', key:'I', openWith:'_', closeWith:'_'},
{name:'File', className:'file-upload fa fa-file-o', openWith:function(markItUp){miu.ImageUpload.upload(markItUp,'markdown',true);}},
{name:'Link', className:'fa fa-link', key:'L', openWith:'[', closeWith:']([![URL:!:http://]!] "[![Title]!]")', placeHolder:'Your text to link here...' }
]
};
};

var load = function(cb) {
cb();
};

return {
'get': get,
'load': load
}

}();

Thanks a lot for helping me!

Martin Stettler

Martin Stettler 0 points

  • 2 years ago

Maybe this isn’t wahat your referring to ... but I recently had a similar problem and so did another guy ...

In the template on the tag with the markup editor, you need to define the bucket ...

bucket=“default” or something

http://forum.grabaperch.com/forum/10-09-2017-runway-all-wysiwyg-editors-not-uploading-images-or-files?page=1#reply-54448

It did not help, thanks anyway. But what I didn't knew, I could change the editor for the textarea without loosing content. So now I am using a customized version of redactor instead of markitup which is even better.