Page 1 of 2

[CDB] Simple WYSIWYG

Posted: Thu Feb 21, 2019 12:21 pm
by Senky
Extension Name: Simple WYSIWYG
Author: Senky

Extension Description: Replaces posting area with simple WYSIWYG editor.
Extension Version: 1.0.0-dev
Source Repository: https://github.com/senky/phpbb-ext-simplewysiwyg

Screenshots:
Snímka obrazovky 2019-02-21 o 13.20.25.png
Snímka obrazovky 2019-02-22 o 9.16.14.png


Restrictions: This ext will never be able to support custom BBcodes.

Extension Download: https://www.dropbox.com/s/r67bstr32iipx ... g.zip?dl=1

Re: [DEV] Simple WYSIWYG

Posted: Thu Feb 21, 2019 12:52 pm
by david63
Does it support multi level quotes? If so how many?

Re: [DEV] Simple WYSIWYG

Posted: Thu Feb 21, 2019 2:12 pm
by Senky
david63 wrote:
Thu Feb 21, 2019 12:52 pm
Does it support multi level quotes? If so how many?
Didn't test yet. Just resolved inline attachments, smilies are a known issue and now I seemingly nested quotes as well. :D

Re: [DEV] Simple WYSIWYG

Posted: Thu Feb 21, 2019 4:53 pm
by EA117
I like the sound of simple. 😃 What's currently expected for [img] or attachments?

Re: [DEV] Simple WYSIWYG

Posted: Fri Feb 22, 2019 8:17 am
by Senky
EA117 wrote:
Thu Feb 21, 2019 4:53 pm
What's currently expected for [img] or attachments?
Img behaves normally and attachments have a markup similar to what it will look like in the post:
Snímka obrazovky 2019-02-22 o 9.16.14.png

Re: [DEV] Simple WYSIWYG

Posted: Fri Feb 22, 2019 12:05 pm
by El_Lagarto
I get the following error when I try to post a new topic:
Fatal error: Uncaught Twig_Error_Loader: Unable to find template "@senky_simplewysiwyg/js/ckeditor/ckeditor.js" (looked into: /***/ext/senky/simplewysiwyg/styles/prosilver/template, /***/ext/senky/simplewysiwyg/styles/prosilver/theme) in "@senky_simplewysiwyg/event/posting_editor_message_after.html" at line 11. in /***/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:232 Stack trace: #0 /***/phpbb/template/twig/loader.php(135): Twig_Loader_Filesystem->findTemplate('@senky_simplewy...') #1 /***/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(150): phpbb\template\twig\loader->findTemplate('@senky_simplewy...') #2 /***/phpbb/template/twig/environment.php(328): Twig_Loader_Filesystem->getCacheKey('@senky_simplewy...') #3 /***/cache/production/twig/3e/3e5cf53f65606c4e476b901edd7dfbe1faec5428159a5aa68a in /***/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 232
(*** is the path to my domain, I edited it out).

Running phpBB 3.2.5, MySQL(i) 5.6.41-84.1 and PHP 7.1.24 if that makes any difference.

edit: upon review it seems like the editor js isn't included in the download package.

Re: [DEV] Simple WYSIWYG

Posted: Fri Feb 22, 2019 7:50 pm
by Senky
Oh yes, I restructuralized the code, you need to download separate version of CKEditor from my repo:
https://github.com/senky/ckeditor-dev

because I had to do quite a changes in the core in order to work with phpBB-specific stuff.

Re: [DEV] Simple WYSIWYG

Posted: Fri Feb 22, 2019 8:24 pm
by El_Lagarto
Senky wrote:
Fri Feb 22, 2019 7:50 pm
Oh yes, I restructuralized the code, you need to download separate version of CKEditor from my repo:
https://github.com/senky/ckeditor-dev

because I had to do quite a changes in the core in order to work with phpBB-specific stuff.
Thanks - I figured it out. 8-)

Re: [DEV] Simple WYSIWYG

Posted: Wed Feb 27, 2019 3:53 pm
by Senky
First post updated:
  • Ext now supports smilies.
  • Download link now with fully working extension - very easy to test.


Next course:
  1. Support quotes from topic review.
  2. Submit to CDB. :mrgreen:

Re: [DEV] Simple WYSIWYG

Posted: Wed Feb 27, 2019 7:08 pm
by Meis2M
Hello
1- any option in ACP or UCP for active this?
2- do you think can develop it for adding in phpbb core? (many discussing in area51 about this and it is one of GSOC project)

Re: [DEV] Simple WYSIWYG

Posted: Wed Feb 27, 2019 7:13 pm
by Senky
Meis2M wrote:
Wed Feb 27, 2019 7:08 pm
1- any option in ACP or UCP for active this?
Not yet. I guess it would be useful to allow disabling it in UCP.

Meis2M wrote:
Wed Feb 27, 2019 7:08 pm
2- do you think can develop it for adding in phpbb core? (many discussing in area51 about this and it is one of GSOC project)
No. It won't support custom BBcodes, thus will never be allowed in the core.

Re: [RC] Simple WYSIWYG

Posted: Wed Mar 13, 2019 11:09 am
by Senky
Update:

The extension is already sitting in the validation queue, we are finally close to WYSIWYG editor in phpBB. 8-)

Re: [RC] Simple WYSIWYG

Posted: Fri May 10, 2019 11:42 pm
by Meis2M
i am really waiting for validation in CDB :D

Re: [DEV] Simple WYSIWYG

Posted: Sun May 12, 2019 11:09 am
by koraldon
Senky wrote:
Wed Feb 27, 2019 7:13 pm
Meis2M wrote:
Wed Feb 27, 2019 7:08 pm
2- do you think can develop it for adding in phpbb core? (many discussing in area51 about this and it is one of GSOC project)
No. It won't support custom BBcodes, thus will never be allowed in the core.
Is it a limitation of the extension or of the bbcodes? i.e. if in phpbb 4 the bbcode definition will change to support WYSIWYG will it work?
Out of curiosity, not a big fan of WYSIWYG

Re: [RC] Simple WYSIWYG

Posted: Sun May 12, 2019 11:20 am
by Senky
I would say both. phpBB has rather complex BBcode system, CKEditor isn't able to handle it. I forked and rewritten CKEditor's BBcode format to at least support default BBcodes.