inherit
220312
0
Oct 5, 2023 8:26:18 GMT -8
tek
43
April 2015
tektek
|
Post by tek on Apr 20, 2021 23:20:58 GMT -8
Can someone direct me to a documentation or information where I may find how Proboards translates the codes while switching from one to another? And do I have to intervene in it in the plugin we write down? If yes, how? My specific problem is that when I create a plugin that inserts tags with attributes, and try it in the, say, BBCode mode, the whole line is successfully build up. However, when I switch to the Preview mode and back to the BBCode mode, the attributes are removed.
The default "Insert Image" feature which works fine initialy made me think I would not experience any problem but I do.
Thanks
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 21, 2021 8:57:27 GMT -8
Proboards BBCode only supports a subset of attributes and CSS inline styles so flipping back and forth between bbcode and preview is the best way to determine what is supported and what is not. Switching tabs sends the prospective code to Proboards servers which sanitize and send back only code with recognized attributes.
|
|
inherit
220312
0
Oct 5, 2023 8:26:18 GMT -8
tek
43
April 2015
tektek
|
Post by tek on Apr 21, 2021 15:15:26 GMT -8
Thank you for clearing my path.
As you have suggested, I tested with the two chief attributes; id and class who are removed as well. So, there is another answer that can't be questioned. The sanitation scythes man's power to help ease users' lifes --contrary to the logic of computer science. Hence the best way is to ignore the advantages of the preview and use custom tags relying purely on UBB.
Thanks again
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 21, 2021 22:31:10 GMT -8
Hence the best way is to ignore the advantages of the preview and use custom tags relying purely on UBB. Thanks again Once you finalize and send the post to Proboards it will still get that sanitizing treatment before it gets placed in the DB so sticking strictly to BBCode tab is unfortunately not going to be a valid path to custom BBCode tags
|
|