cotonti.com : Changing Markitup butons https://www.cotonti.com Neueste Themenbeiträge Cotonti en Fri, 21 Nov 2025 01:40:06 -0000 ez 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));
]]>
Do, 26 Nov 2009 04:41:56 -0000
Dayver /markitup/js/set.js - var mini for comments form and var mySettings for other defult form]]> Do, 26 Nov 2009 00:03:44 -0000 ez
e.g. I want to change the generated bbcode off a link button

How can this be done?

Can I change the buttons for certain forms ?
e.g. How does this work in comments.. there is an other markitup bar there ??]]>
Mi, 25 Nov 2009 20:55:33 -0000