Editor pro vkladani prispevku - anketa

friends, I have a poll question for you, which is connected with the rewriting of valka.cz to the new host I am working on. One of the tasks that I have set myself is to get rid of all the "unnecessary" and unused ballast that has accumulated here over time, always under good pretences, and which does not serve its purpose, or rather does not serve to the extent that it "burdens".
By burden you can imagine either my time, which I have to devote to the maintenance or development of a given function, its migration to new versions, maintaining and fixing bugs, etc., but also your time, which you have to spend waiting for something to load.


One of these features that I am "addicted" to is the contribution editor, that is, to be clear, this





Why? Because the scripts that this editor requires to run are HUGE, about 500kB, which is about 1/6 of all the data uploaded on our site, excluding ads. Therefore, it is probably a good idea to think about how much we actually use it, and what features we "need" from it, or where we would like to go next in terms of inserting contributions.


In the picture above you can see the main things the editor can do:
1) writing plain text Smile
2) buttons for quick insertion of some predefined tag/marker, but without any more complex functions.
3) highlighting tags / tags in the post in color
4) date highlighting in the post in color
5) for the linker, more of a technical thing, to mark a part of the text and allow to click to "wrap" it with tags / tags. (I mention this here for completeness, the linker will always be preserved, only this was historically a terrible hassle and it worked differently in different browsers, so the editor helped me a lot at the time, but time has advanced considerably and it can be solved with effort).


Therefore, my first question is: which functions from the above are important for you, which ones do you use, and which ones are you not aware of?


Second question: do you use the buttons above the editor to insert tags?


And now a little more talk before I ask the third question.
Historically, this forum and site started on a platform called phpBBforum, where there were categories, topics, users who could post and format posts using a set of tags. These are the things in square brackets that you know so well. The idea at the time, say 18 years ago, was that it wasn't easy to do straight HTML, so a subset of tags were selected, put into [] instead of <> (which HTML uses), and then each time each post is displayed, the transformation is made from the "bb tag" to "html", which the browser can display.


There are advantages and disadvantages to this.
The advantages include the fact that it is just a tag, which the background programmer can freely transform into any set of one or more HTML tags, add formatting, and change the entire design without having to go back and redo all the posts where the tags are used. At the same time, it is a simplified version of HTML, because it offers significantly more parameters in each tag than you have available here (or for many of them there is no parameter, just do [ b ] and you're done. But a link [ url= ] is already a parameter of the URL you want to link to. We can also create other, new, custom tags that don't exist in HTML (the various table headings, centered images and many, many more), but which are transformed into HTML in the background in some way.


And now the disadvantages. The disadvantage visible from the above text is the transformation. Each contribution must be taken, loaded from the database, and the transformation performed on it. You can think of it as a set of SEARCH AND REPLACE, find and replace commands that you know from Word. If you find a BB TAG of something, replace it with the HTML tag of something else. Only then can you send it to the browser, which will display it to the user. There are ways to get around this, so that the processed contribution is stored in memory for a while, and if someone else wants it, it is resent directly, without transformation, but this is a workaround to the above problem. The second problem is that there is actually no nice "small" editor, in terms of data, that can not only insert BB codes / tags, but also display them. We call it a WYSIWYG editor (what you see is what you get), where you don't use tags for formatting, but just write and choose formats from a menu, just like when you write in Word. Of course there are the tags in the background, but you don't have to care about that, you just write, make a title, bold, whatever, and you can see how it will look in the post. You don't look at the jumble of tags and text, you just look at the resulting text. No modern editor with BB TAGS can do that, and if it does, it's only partially. Tables and similar ficuras we have here will never work without a huge amount of work. On the other hand, there is a wide variety of HTML WYSIWYG editors and it is quite easy to extend and enrich them. For example, our article editor works as a WYSIWIG editor, because it is already in HTML and there are no special BB tags, the output is straight HTML and the article does not undergo such massive "preprocessing" before it is displayed.


So the third question is: can you imagine that instead of writing half text, half tags and code, we switch to a single editor like our article editor and start writing directly in HTML? for the less technically proficient I believe that it will mean NOTHING, you will just forget the BB tags we used to use here and start using the menu options in the new editor instead. Nothing more. For more technically savvy people there will be a "switch to source code" function where you can edit a lot of things (Janko probably knows what I'm talking about, from his experience with the article editor). We're not talking about enabling some big and complex formatting, letter sizes and similar crap, we do NOT need that here. There will be 2-3 levels of headings, bold, italic, underlining, tables, youtube videos, twitter, images and our special tags for example for table headings, tables with overviews, shrunken images and all other tags you know, but they won't be in square brackets, but in curly brackets ... Anyway, apart from the template-tables, the vast majority of our contributions do not contain ANY formatting, it's mostly just plain text Very Happy Is it somehow tragic for you that we would switch like this and throw away the whole BB code with its transformations in the future and switch to pure HTML, without any intermediate steps?
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723518 Version : 0

Diskuse

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

Používam tlačítko ZDROJE, potom " (citácia), odkaz na YUTUBE, TWITTER, PROLINK, SÚRADNICE a samozrejme nápovedu, kde sú všetky ostatné nezobrazené kódy. Občas PODNADPIS. Typ písma, linkator a vlajkator riešom klávesovými skratkami, URL a indexy SUP, SUB si pamätám z hlavy.


U seba nevidím problém s nahradením BB kódv niečim iným, ak bude k dispozícii tá nápoveda v podobnej podobe ako je tam dnes. Za mňa tie tlačítka len skracujú vkladanie, pretože nemusím vypisovať kódy, ale robí to automaticky.
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723524 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

POužívám nadpis, podnadpis, zdroje, linkátor a vlakátor otvírám přes klávesové zkratky. B, I, U, X2 se hodí vždycky, citace taky. Obrázky jsem přes link nevkládal ani nepamatuju. Občas používám prolink. Preformated jsem úplně zapoměl že existuje, přitom to vypadá docela užitečně.
Přechodu na html se nebráním, asi by to lecos zjednodušilo.
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723526 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

Používam najčastejšie:
- Nadpis
- Podnapis
- ZBL
- Citace
- Odkaz


Vlajkátor a linkátor, ako aj typy písma riešim prostredníctvom klávesových skratiek.


Prechod na čistý HTML vítam.👋
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723567 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.


  1. text jasný, ty značky ano (více viz níže), zvýraznění tagu mi pomáhá, stejně tak u datumů, linkátor super (akorát mi prostě čas od času funguje, nebo naopak nefunguje; paradoxně s vlajkátorem problém nemívám)


  2. v nějaké míře používám téměř všechny (asi vyjma PRE a DROPCAP, ale to proto, že nepíšu žádné texty-články), na klasiku B, I, U, linkátor a vlajkátor používám klávesové zkratky, ty specializované na automatické vypisování nepoužívám zas tolik (AWARDS_LIST, AWARDS_UNIT, ...), ale jsou dle mího názoru velmi přínosné (tam jejich používání závisí na zaměření každého soudruha)
    Celkem dost si je pamatuji z hlavy, ale takhle je vkládat, to dělám jen když musím, protože to vyžaduje přepínání klávesnice (kvůli hranatým závorkám, vlnovkám) a já jich mám několik a pak musím na win liště (kterou mám schovávací) kontrolvat, kam až jsem se přepnul;, ale to je můj boj


  3. asi i dokážu, upřímně mne baví psát s tím, že vidím formátovací značky / tagy, ale pakliže by se přešlo na WYSIWIG s možností přepnout do "pokročilího módu", kde bych je též viděl, nevidím v tom problém. No a kdyby to nešlo, tak se holt přizpůsobím, zas tak zásadní věc to pro mne není Smile
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723571 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

jj, v podstate smeruju k necemu takovemu


https://quilljs.com/


pripadne podobnemu editoru, ktery proste rovnou "ukazuje" vysledek, bez toho prebytecneho haraburdi znacek, ktere, a to si rekneme uprimne, dokaze spoustu lidi odradit, protoze to vypada slozite. A holt asi musime jit s dobou a udelat to jednodussi ... vsechny ty specificke znacky, co tu mame, bych prevedl do HTML, protoze se nechci vzdat toho chovani, kde si nekde na pozadi reknu, jak ma treba tag AWARDS_LIST presne vypadat a jak se ma vykreslit (jako tabulka osobnosti, s fotkami atd), takze to zustane. Jen se zmeni system jak se to dela a to formatovani uz si udela prohlizec sam, protoze to uz je normalni funkcionalita vseobecne dostupna ve vetsine modernich prohlizecu (ne, opera na mobilu to mozna neumi, ale fakt neresim prohlizece ktere pouziva 50 z nasich 150 tisic uzivatelu mesicne, stejne tak jako jestli nekdo jeste sebemrskacsky jede na Internet Exploreru 6.0 Very Happy ). Takze zatim jsem ve fazi hledani neceho, co je
1) relativne male
2) relativne schopne
3) umi to pracovat s temito vlastnimi definovanymi znackami
4) umi to zobrazit vysledny HTML kod pro rucni upravy, pokud je chut ci potreba zajit az tak daleko Smile
5) umi to barevne zvyraznovat nektere casti tohoto HTML kodu pro snazi orientaci a editaci


Jinak by vse melo fungovat jako doposud, tedy dvojklik-editace, tabulky, sablony atd, veskere tyto finesy by mely zustat tak jak jsou, jen proste vysledek a cesta k nemu bude technicky trochu jina.


Jeste k te napovede, ta samozrejme bude, ale myslim ze v takovem editoru nebude proste potreba. Budete vkladat pomoci volby z menu, typu "sem chci vlozit seznam jednotek s timto vyznamenanim". Vyskoci okno a rekne, "Hele, jake je ID tematu vyznamenani". Zapisete 12345, date OK, a hotovo, rovnou vidite vysledek te znacky (pripadne ze se to cele pokakalo, takze rovnou smazete a vlozite znova Smile). Jo, proste novy editor by byl vyrazne interaktivnejsi nez to co mame ted, kde to je sice mozna "rychlejsi", ale je to take takove vic "hardcore" pro novacky nebo lidi ne tak technicky zdatne, ktere to proste od vkladani odradi.


zaroven s tim pripravuju zasadni rozsireni vkladani priloh, abychom se zbavili omezeni jen peti priloh na prispevek, to by take melo nektera vkladani fotek vyrazne zjednodusit (copy-paste funkce jak je ted zustane zachovana).


mozna, a v nekterych editorech jsem to videl, umoznim vkladani nekterych specifickych oblasti, ci jak to nazvat, Treba rozviraci a zaviraci seznamy (aka karusely), nebo treba "table of contents", obsahu, a podobnych, ktere by umoznili vetsi variabilitu pri psani clanku. Ale je to jen "mozna", pokud to technologie umozni a pujde to snadno, proc ne. Pokud by to mel byt vopruz nebo nejaka nejista implementace, tak se bez toho obejdeme, jako poslednich 25 let (ano pratele, letos je tomu 25 let ...)
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723595 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

Z Editoru používám či používal jsem:
Nadpis/Podnadpis - používal jsem, když jsem psal dlouhé texty
B/I/U - většinou už píšu ty BB tagy než mačkám tlačítka
ZBL - používal jsem kdysi dávno, teď se snažím rovnou založit tabulku
Obrázek - většinou už spíše píšu ten BB tagy než mačkám tlačítko (používám hlavně u různých přehledů techniky a tam je to součást složitější kombinace, kterou spíše kopíruju od někud, kde to již je použité)
Odkaz - velmi zřídka, nyní dominuje linkátor
YT - ale jen zřídka
Tweet - hodně často
Smajlík - ale velmi zřídka
Prolink - ještě méně
Nápověda - občas používám, když zapomenu třeba BB tagy na tvorbu odrážkového seznamu


Ostatní v podstatě vůbec nepoužívám.


Ty BB tagy používám ručně hlavně pro odrážkové seznamy, tabulky a tabulky s obrázky. Přes tlačítko tweet. Přes linkátor odkazy.


Klidně WYSIWIG a rovnou HTML na pozadí, jak píšeš, když zůstane nějak jednoduše možnost vkládat ty tweety, dělat odkazy, tabulky a odrážkové seznamy.
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723603 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

Vlajkátor a linkátor riešim prostredníctvom klávesových skratiek.
Ostatné používam podľa obrázku. Linkovanie v článku mi zdá sa ide, tak by to pre mňa nemal byť problém.
Napadlo ma teraz, ak sa prejde na nový formát, bolo by možné spraviť video tutorial aspoň základných funkcií? Pre mňa a ktovie, aj pre nových účastníkov na Válke? Very Happy
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723604 Version : 0

This post has not been translated to English yet. Please use the TRANSLATE button above to see machine translation of this post.

Zdroje
Linkátor
b
i
u
superscript
citácia
odkaz
youtube
vlajky


Ja ako jednoduchý prispievateľ/moderátor kvantum vecí ani neovládam. Vzhľadom na to, že som pred rokmi objavil nejaké tabuľkovanie údajov, tak v tomto smere sa niekedy vyžívam. Ocenil by som tak "tlačidlo na
, a . Alebo mi poraďte klávesové skratky. Lebo ručne to písať je niekedy riadne demotivujúce.
URL : https://www.valka.cz/Editor-pro-vkladani-prispevku-anketa-t267221#723611 Version : 0
Discussion post Fact post
Attachments

Join us

We believe that there are people with different interests and experiences who could contribute their knowledge and ideas. If you love military history and have experience in historical research, writing articles, editing text, moderating, creating images, graphics or videos, or simply have a desire to contribute to our unique system, you can join us and help us create content that will be interesting and beneficial to other readers.

Find out more