Open SnowRunescape opened 2 months ago
Please share more info where the compiled/obfuscated version comes from. Nothing on our side forces you to use such workarounds, and I would like to understand more why you have this setup.
The compiled version comes from the CKEditor 5 online builder at https://ckeditor.com/ckeditor-5/builder/. I generated it directly from there, and this is the form it came in. The specific script I'm using is hosted at: https://cdn.minecart.com.br/assets/js/ckeditor/ckeditor.js.
I am trying to access the ButtonView from the compiled version of CKEditor. In the obfuscated version, the ButtonView is renamed to Mv. To work around this, I created a temporary solution by adding window.PARAS = Mv to access ButtonView. However, this approach seems far from ideal and feels like a hack.
Problem:
This method exposes internal CKEditor details globally and relies on the obfuscated naming (Mv), which might change in future releases, making the code brittle and unreliable. I need a more robust way to access ButtonView without exposing internal objects or depending on obfuscated variable names.
Goal:
I am looking for a better way to access ButtonView using pure JavaScript, ideally one that is maintainable and not dependent on CKEditor's internal obfuscation.
Example Code:
using like a hack, tthis work.