You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 additions → [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
change the height of Quick Reply Box to be similar to this without extension.
Done.
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?
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>
Is this like the BBCode official extension?
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!
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
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
PunBB Forums → PunBB 1.4 additions → [Extension] om_markitup 1.4.2.03
Powered by PunBB, supported by Informer Technologies, Inc.