1 (edited by keeshii 2015-11-02 13:00)

Topic: [Extension] om_markitup 1.4.2.03

om_markitup
Changes the bbcode editor to MarkItUp. I have hook'ed this plugin, so other extensions can easly add add their buttons to the toolbar. Please don't install pun_bbcode - these two extension cannot be activated at the same time, unless you like trouble smile


om_markitup 1.4.2.03 (current): om_markitup-1.4.2.03.zip


Changelog:
1.4.2.02
Fixed problem with forum_loader add_js
Prepared for php 5.5

1.4.2.02
Textarea in quickpost panel becomes smaller.

1.4.2.01
Initial version


Screenshot:
http://dev.poldrag.katowice.pl/distfiles/punbb/om_markitup.png

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

2

Re: [Extension] om_markitup 1.4.2.03

Oh, thanks Keeshii, added to the List

3

Re: [Extension] om_markitup 1.4.2.03

Hey, keeshii! I have a suggestion to change the height of Quick Reply Box to be similar to this without extension.
Currently it is so big like on Full Post Reply.

Re: [Extension] om_markitup 1.4.2.03

Trace wrote:

change the height of Quick Reply Box to be similar to this without extension.

Done.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: [Extension] om_markitup 1.4.2.03

When tring to use the extension, such an error is reported in the console when accessing new post page:

TypeError: $(...).markItUp is not a function 2:266

How should I fix this one or what could it possibly be caused by?

Re: [Extension] om_markitup 1.4.2.03

Gregoric, why on the page two jQuery boot?

...
<meta charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
...
<script>
    $LAB.setOptions({AlwaysPreserveOrder:false})
    .script("//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js").wait();
</script>
</body>
</html>
ForkBB
I speak only Russian  :P

7 (edited by semperverus 2014-08-11 15:17)

Re: [Extension] om_markitup 1.4.2.03

Is this like the BBCode official extension?

8 (edited by Gregoric 2014-09-13 16:49)

Re: [Extension] om_markitup 1.4.2.03

Visman wrote:

Gregoric, why on the page two jQuery boot?

...
<meta charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
...
<script>
    $LAB.setOptions({AlwaysPreserveOrder:false})
    .script("//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js").wait();
</script>
</body>
</html>

I had declared jQuery twice, as I did not know how to add custom JS code back then (and I have coded it into the main.tpl template file). Since I made some research about LAB.js (thanks to your pointing out that jQuery is loading twice in my case) I am now able to use my custom JS files properly smile

After removing double jQuery, the addon did returned lack of jQuery lib loaded and so I have added such line to the footer.php so that the addon JS code loads after the LABjs loads jQuery library.

$forum_loader->add_js($base_url.'/extensions/om_markitup/js/jquery.markitup-1.1.13.js');

Now the extension works just fine!

Re: [Extension] om_markitup 1.4.2.03

You were right - the extension included js files in the wrong way. I have corrected that, now it should work without any more problems smile

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

10 (edited by rrawicz 2016-01-04 23:32)

Re: [Extension] om_markitup 1.4.2.03

Bug,


if I try to use button code I have code /list instead code /code

fault is in bbcode_tags.php file at line 67