HOWTO
| ez |
|
|---|---|
|
I want to change Markitup buttons.
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 ?? ==- I say: Keep it EZ -==
Відредаговано: ez (25.11.2009 21:04, 15 років тому) |
| Dayver |
|
|---|---|
|
See files /markitup/js/set.js - var mini for comments form and var mySettings for other defult form
Pavlo Tkachenko aka Dayver
|
| ez |
|
|---|---|
|
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 -==
|