• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

AAC Znote Acc, Admin news page. Resizable image

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,033
Solutions
15
Reaction score
325
Location
Sweden
YouTube
Joriku
Hi,
so I am getting tired of needing to do photoshop work for a pixel too big or small and I'd like to see if there's already out there.
I'd love an admin news page where the editor allows you to simply change the picture res manually by dragging it.

Just like this, like Otland thread has it
1668146444951.png
 
Last edited:

alexv45

Well-Known Member
Joined
Sep 16, 2021
Messages
50
Reaction score
79
GitHub
Alexv45
Hi,
so I am getting tired of needing to do photoshop work for a pixel too big or small and I'd like to see if there's already out there.
I'd love an admin news page where the editor allows you to simply change the picture res manually by dragging it.

Just like this, like Otland thread has it
View attachment 71610

You will need to replace the editor in this case.

On admin_news.php, line 25-26 notepad:
Lua:
<script src="engine/js/nicedit.js" type="text/javascript"></script>
        <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
Delete this,
Line 46 starting on <textarea> markdown, delete the entire line,

Add this,
Code:
<textarea name="editor"></textarea>
    <script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
    <script>
    tinymce.init({ selector:'textarea' });
    </script>

It asks to create an account for registered domain,
1668329864167.png

Create a new one, and get started, there is also a paid features for the editor.

You can try it here: The Most Advanced WYSIWYG HTML Editor | Trusted Rich Text Editor | TinyMCE (https://www.tiny.cloud/)
 
Top