Jump to content
Monvisret

[Request] More powerful editing abilities

Recommended Posts

Would it be possible to allow users to edit the actual source code of their post (whether it's BBCode or HTML+CSS)? It's not possible using the WYSIWYG editor to include a BBCode floating box (or a box at all) because it seems it only understand a more limited form of BBCode, and a box isn't included, meaning Wiki-style factbooks aren't possible on the forum. The WYSIWYG editor also makes other compromises regarding formatting, such as regarding each {hr} divider as being in its own paragraph spacing-wise, inflexible tables, and being unable to choose a more granular font size (or, for that matter, a font which is not included as a preset in the drop-down menu). One way of avoiding this is by entering the post as BBCode manually, which gives more control over formatting and layout, but clicking preview means all the BBCode is also formatted in the WYSIWYG editor when you *leave* the preview mode, meaning no further BBCode editing is possible without starting over.

Tl;dr - the WYSIWYG editor is a powerful feature which simplifies rich text formatting, but there are situations where complete control over layout would be more desirable, namely for posts where paragraphs aren't the main structure. Could an feature be integrated allowing the option of editing the source of a post?

Edited by Monvisret
  • Like 4

Share this post


Link to post
Share on other sites

@Monvisret I hear your complaint and I agree wholeheartedly. In April I asked a similar question on the support forum of our CMS provider. You can read about it here. Right now we're using the CKEditor v4.3, while there is already a newer version available. I'm unsure if or when this would be upgraded, since CKEditor 5 has a steep pricing.

Now, it is possible to allow the editing of source code. This is enabled for the admin role. I disabled this for security reasons, since enabling source editing would allow the user to embed scripts as well.

I could investigate a better 3rd way. Have a look at what's possible by extending our existing CKEditor. I appreciate the more advanced "Article Editor":  https://ckeditor.com/ckeditor-4/ It can be extended with a wide range of add-ons. https://ckeditor.com/cke4/addons/plugins/all

Would you have time to have a look at this and make a recommendation?

  • Like 1

Share this post


Link to post
Share on other sites

Thank you @Monvisret for all your work and research. I really appreciate your help with improving the editor. I will take some time tomorrow to have a go at these addons. The magic line is something I tested before, on the night had to reset everything. Since then I haven't risked touching the settings, since it requires the manual re-adding of each and every button. There is no easy undo for the editor.

The additional questions you ask are not bothersome at all. It shows you interested you are in asking questions and figuring things out. Anyone who's had experience with Zetaboards will probably have tinkered with similar stuff as well. 

  1. Costs. Each month I'm billed $20 for our minimal setup of an average 20 active users. The next tier is +$5 which would be nice since it unlocks the HTTPS feature. Right now we're not big enough to request it.
  2. Funding. No ads. Just me. Our previous version, actually our original one which I exported from Invisionfree, employed Google Ads. But we didn't get anything out of that.
  3. Editor security. You can hide a lot of sneaky stuff by adding some inline CSS. Dumpt some code in there and hide it with {display:none}. That's rather easy. I'm sure @Adaptus could tell you more about this, preferably in private. We wouldn't want to dig our own grave.
  • Like 2
  • Thanks 2

Share this post


Link to post
Share on other sites

Honestly, I think it might be worth it to think about some patreon or something. If some of us would agree to pledge a buck or two per month, we could improve the experience for everyone. I know I'd be willing to and I'm pretty sure some others would be as well.

  • Like 1
  • Thanks 1
  • Love 1

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Who's Online (See full list)

  • Posts

    • Name of Company:- Who are you? Mercator Shipbuilding Division Type of Business: - What does the company do? The Mercator Group’s Shipbuilding division is the primary supplier of vessels for PyeMcGowan’s largest shipping conglomerate. Nation of Origin:- Where is your HQ. Southerland City, PyeMcGowan  What is to be manufactured at MTIZ? The primary manufactured good to be constructed at MTIZ are container ships, and once or twice every year an order for a ‘Special Vessel’ will be placed. These could be Cruise liners or navy destroyers. What is getting made?  Vessels, as explained above Number of Workers to be recruited locally:-  2,890 employees will be hired locally, 20 of which will be Administrative positions. Number of visiting workers to be based there:-  There will be 111 foreign workers. 90 will work in the Shipyard’s office as office workers. 20 will be High level supervisors and inspectors. And 1 will be the Site Administrator.
    • Home | World | Salvia | Business | Politics | Opinion | Tech  People’s Address Slated for Monday  The annual People’s Address, originally started by Pope Gregory VII after being elected to the presidency in 1848, is scheduled to occur at Murphy’s Cathedral on Monday, at around 6:00 PM.  It will be the most watched address since it was first broadcasted in 1959.  Top officials have said that Saulius plans tol cover topics related to the economy, infrastructure, healthcare and welfare, and international relations.  This address is of particular note, as it comes after a year of warming relations with Tagmatium as well as Salvia’s emergence back into international diplomacy after a long period of quiet isolationism following the Long War.  The People’s Address was established by Pope Gregory VII in 1848, a month after being elected to the presidency, an office established following the People’s War, a democratic uprising against the monarchy.  Pope Gregory VII, after aiding the overthrow of the corrupt and secular monarchy, was elected to the presidency, where a month later he addressed the first Concilio Populi.  This began the tradition of the People’s Address, which is now scheduled for the third Monday of February each year.   
    • @Alenveil, message me over the next two days as I would like to discuss how you want me to proceed in terms of this meeting.
    • Morror Kassus Honorable Noble of Rihan (Khlinæ'eri emotæ mnea Rihana) and Senator of the Republic (Deihu mnea Rheilhhu) does hereby announce: a week of feasting, arena games, and boundless entertainment lasting from Brax (March) 15-20 in the name of our brave men and women who won a glorious victory at Duronom Free and open to the public, all provided at the personal expense of Morror Kassus   OOC: As you will see concerning the date, this will take place following events yet to be played out in the "In the Shadows" plot line but I wanted to set it up now for when the time comes. Also, if people have ideas or designs for a personal seal for Morror Kassus going forward that I can use, let me know.
    • I would definitely like to participate in this. Maybe Llalta, being so isolated and safe, could act as some kind of save haven for people to escape to? Of course, this would lead to some issues like maybe an infected group of people attempting to find refuge in Llalta and the issues our small government will face.

Connect

×