Configuring markitup editor for markdown
Hey there,
I've always used CKeditor but I've recently thought I'd like to give markitup ( + markdown) a go.
How can I configure markitup properly for FuelCMS?
What I'm trying to do is define what ends up in the markitup toolbar etc...
Inside MY_fuel.php I only see the options for ckeditor, what about markitup?
Cheers!
Comments
fuel/modules/fuel/assets/js/editors/markitup/jquery.markitup.set.js
I also suppose, in 1.0 you could use a "js" parameter for a form field to manipulate the "myMarkItUpSettings" object.
// examples $record->content_markdown $record->content_formatted $record->content_stripped $record->content_parsed $record->content_wrap $record->url_path $record->image_path $record->image_filesize $record->image_serverpath
Additionally, you’ll be able to pass parameters by calling the function version:
$record->content_wrap(50)
To apply multiple you can use the new “format” method like so:
$record->format(‘content’, ‘stripped|formatted’)
You also can easily map your own functions to suffix values.
but how do I tell markitup to use markdown syntax in 0.9 ?
fuel/modules/fuel/assets/js/editors/markitup/jquery.markitup.set.js
Below is a link to an example on their website:
http://markitup.jaysalvat.com/examples/markdown/
$config['fuel_javascript'][] = 'my_custom_js';