Forums / Cotonti / Support / Changing Markitup butons

HOWTO

ez
#21215 2009-11-26 04:41
OK thanks..Dayver.
I finally found how this works, So here it is.. (for everyone to use)

In the markitup.header.php there is a section
$(document).ready(function() {
$("textarea.editor").markItUp(mySettings);
$("textarea.minieditor").markItUp(mini);
});

In the forms there are classes that link to this code above.
And in the set.js there you have the settings for the markitup buttonbar.

So if you want to make a new set of buttons for a special reason/form...
Add a set to set.js, add a line to markitup.header.php
and make a new form see: plugin comedit -> comedit.php

	$t -> assign(array("COMEDIT_FORM_TEXT" => "<textarea class=\"minieditor\" rows=\"8\" cols=\"64\" style=\"width:100%\" id=\"comtext\" name=\"comtext\">".htmlspecialchars($com['com_text'])."</textarea><br />".$pfs));
==- I say: Keep it EZ -==