>>
|
No. 6507
[Edit]
File
149753264337.jpg
- (130.34KB
, 1023x591
, CfXRkwiWEAAQc_j.jpg
)
>>6500
>BBCode Tag Wrapping:
When I select a text and click on "Bold" or any of the other options, the tags should wrap around the selection; instead, they appear at the last space of the message box. Ultimately this makes writing the tags yourself faster, thus making the feature obsolete once you know the tags. Is it possible to be fixed?
In short: probably not, sorry.
Tohno has informed me of the code which inserts the bold tags into the post box. In short this part of the code is what adds the bold tags at the end of the box.
this.form.{%KU_MSGFIELD}.value.concat(' ')
The ".concat", short for concatenation, adds the text at the end of whatever else is in the post. Nowhere, as far as I can tell anyway, does the code check for what text is highlighted. The only other instance I can find "this.form.{%KU_MSGFIELD}.value" used is in the Noko and Sage buttons, but in that instance it replaces the entire contents of the e-mail field with either noko or sage. I think that is much farther from a desired outcome for bold tags than merely adding them to the end of the post.
Between Tohno and myself we've spent about 5 hours working on this, and it seems like it would be very involved to implement. We use an outdated version of the language we use for scripts, probably due to its compatibility with Kusaba which hasn't been updated since 2012. The version of this language we use doesn't have documentation ... there is some limited amount available via archive.org , but I wasn't able to find any references to other arguments for the code used to add bold tags besides concatenation. I tried some level of googling around, but wasn't able to find anything about it. I also tried looking through other files on the server to see if there was anything helpful, but to no avail.
I'll keep thinking about it, but it might not happen if we don't make some major changes to the board software, or find someone very familiar with the software we're running. Sorry.
|