Editor & BB Code Manager

Editor & BB Code Manager 2.0.1 Patch Level 1

No permission to download
Go go go Katsulynx :D We'll all waiting for the AJAX support, I know we know you can do it! If you need any kind of support/beta testing/anything for this, let me know :)
 
There are some conflicts with TH Xpress addon. Getting following errors. Will be happy if you can fix it as soon as possible. Thanks for your support and interest @Lukas W.

Code:
ErrorException: [E_NOTICE] Undefined index: removeButtons src/addons/KL/EditorManager/Listener/Template/Editor.php:83

Stack trace
#0 src/addons/KL/EditorManager/Listener/Template/Editor.php(83): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/altikana/...', 83, Array)
#1 [internal function]: KL\EditorManager\Listener\Template\Editor::extend(Object(KL\UserImprovements\Template\Templater), 'public', 'editor', Array)
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF/App.php(2392): XF\Extension->fire('templater_templ...', Array, 'public:editor')
#4 src/XF/Template/Templater.php(1231): XF\App->fire('templater_templ...', Array, 'public:editor')
#5 /home/altikana/public_html/blog/wp-content/plugins/wp-xpress-plugin/src/XPress.php(891): XF\Template\Templater->renderTemplate('editor', Array)
#6 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/functions.php(805): XPress::getEditorInstance('comment_content', 'comment')
#7 /home/altikana/public_html/blog/wp-includes/class-wp-hook.php(286): {closure}('<p class="comme...')
#8 /home/altikana/public_html/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p class="comme...', Array)
#9 /home/altikana/public_html/blog/wp-includes/comment-template.php(2376): apply_filters('comment_form_fi...', '<p class="comme...')
#10 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/comments.php(147): comment_form(Array)
#11 /home/altikana/public_html/blog/wp-includes/comment-template.php(1474): require('/home/altikana/...')
#12 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/single.php(49): comments_template()
#13 /home/altikana/public_html/blog/wp-includes/template-loader.php(74): include('/home/altikana/...')
#14 /home/altikana/public_html/blog/wp-blog-header.php(19): require_once('/home/altikana/...')
#15 /home/altikana/public_html/blog/index.php(17): require('/home/altikana/...')
#16 {main}

Request state
array(4) {
  ["url"] => string(33) "/blog/2018/07/15/wp-article-test/"
  ["referrer"] => string(31) "https://www.altikanal.com/blog/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/addons/KL/EditorManager/Listener/Template/Editor.php:83

Stack trace
#0 src/addons/KL/EditorManager/Listener/Template/Editor.php(83): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/altikana/...', 83, Array)
#1 [internal function]: KL\EditorManager\Listener\Template\Editor::extend(Object(KL\UserImprovements\Template\Templater), 'public', 'editor', Array)
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF/App.php(2392): XF\Extension->fire('templater_templ...', Array, 'public:editor')
#4 src/XF/Template/Templater.php(1231): XF\App->fire('templater_templ...', Array, 'public:editor')
#5 /home/altikana/public_html/blog/wp-content/plugins/wp-xpress-plugin/src/XPress.php(891): XF\Template\Templater->renderTemplate('editor', Array)
#6 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/functions.php(805): XPress::getEditorInstance('comment_content', 'comment')
#7 /home/altikana/public_html/blog/wp-includes/class-wp-hook.php(286): {closure}('<p class="comme...')
#8 /home/altikana/public_html/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p class="comme...', Array)
#9 /home/altikana/public_html/blog/wp-includes/comment-template.php(2376): apply_filters('comment_form_fi...', '<p class="comme...')
#10 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/comments.php(147): comment_form(Array)
#11 /home/altikana/public_html/blog/wp-includes/comment-template.php(1474): require('/home/altikana/...')
#12 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/single.php(49): comments_template()
#13 /home/altikana/public_html/blog/wp-includes/template-loader.php(74): include('/home/altikana/...')
#14 /home/altikana/public_html/blog/wp-blog-header.php(19): require_once('/home/altikana/...')
#15 /home/altikana/public_html/blog/index.php(17): require('/home/altikana/...')
#16 {main}

Request state
array(4) {
  ["url"] => string(33) "/blog/2018/07/15/wp-article-test/"
  ["referrer"] => string(31) "https://www.altikanal.com/blog/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Screenshot_123.webp


Checking health of files

Check completed for 7,711 files. Some problems have been found with the following files. Please, resolve these problems as soon as possible.

Editor Manager src / addons / KL / EditorManager / XF / Html / Renderer / BbCode.php Unexpected content
 
Hi Lukas,
Look at the kl_em_editor_phrases template. All phrases that have a translation are listed there. If any are missing, let me know. Translation for them works fine on all my installations.
Can't find the phrases related to front Editor button like : Bold (CTRL+B), Underline (CTRL+U) etc...

2018-07-19 10_55_02-Window.webp

ex for Underline (CTRL+U) i only find :

2018-07-19 10_57_31-Window.webp

Also the Template does not contain the phrase for Bold, Underline etc :

Code:
"Insert Table": "{{ phrase('kl_em_table')|escape('js') }}",
"Table Header": "{{ phrase('kl_em_table_header')|escape('js') }}",
"Remove Table": "{{ phrase('kl_em_remove_table')|escape('js') }}",
"Row": "{{ phrase('kl_em_row')|escape('js') }}",
"Column": "{{ phrase('kl_em_column')|escape('js') }}",
"Insert row above": "{{ phrase('kl_em_insert_row_above')|escape('js') }}",
"Insert row below": "{{ phrase('kl_em_insert_row_below')|escape('js') }}",
"Delete row": "{{ phrase('kl_em_delete_row')|escape('js') }}",
"Insert column before": "{{ phrase('kl_em_insert_column_before')|escape('js') }}",
"Insert column after": "{{ phrase('kl_em_insert_column_after')|escape('js') }}",
"Delete column": "{{ phrase('kl_em_delete_column')|escape('js') }}",
"Vertical Align":"{{ phrase('kl_em_vertical_align')|escape('js') }}",
"Top":"{{ phrase('kl_em_top')|escape('js') }}",
"Middle": "{{ phrase('kl_em_middle')|escape('js') }}",
"Bottom": "{{ phrase('kl_em_bottom')|escape('js') }}",
"Horizontal Align": "{{ phrase('kl_em_horizontal_align')|escape('js') }}",

"Inline Spoiler": "{{ phrase('kl_em_inline_spoiler')|escape('js') }}",

"Align Justify": "{{ phrase('kl_em_align_justify')|escape('js') }}",

"Hide Reply": "{{ phrase('kl_em_hide_reply')|escape('js') }}",
"Hide Posts": "{{ phrase('kl_em_hide_posts')|escape('js') }}",
"Hide Thanks": "{{ phrase('kl_em_hide_thanks')|escape('js') }}",
"Hide Reply Thanks": "{{ phrase('kl_em_hide_reply_thanks')|escape('js') }}",
"Hide": "{{ phrase('kl_em_hide')|escape('js') }}",

"HTML": "{{ phrase('html')|escape('js') }}",

"Google Font": "{{ phrase('kl_em_google_font')|escape('js') }}",
"unlink all links": "{{ phrase('kl_em_unlink_all_links')|escape('js') }}",
 
Those are also standard XenForo phrases, if even. I haven't reinvented the wheel. Everything that's been on the original toolbar is from XenForo.

I deactivated your Addon, and the sentence "Underline CTRL-U)' is well translated with default XF editor :

2018-07-19 18_37_01-Window.webp
Once i reactivate KL Editor, the translation is gone :

2018-07-19 18_23_28-Window.webp
 
There is a mistake in the addition, brother

Rich (BB code):
Fatal error: Call to undefined function KL\EditorManager\XF\BbCode\Renderer\boolval() in C:\xampp\htdocs\forum\src\addons\KL\EditorManager\XF\BbCode\Renderer\Html.php on line 78

1532081810625.webp
 
That function doesn't exist in php5.4. I'd generally recommend upgrading your php version. Otherwise this will be fixed with the next update, but that'll take a small while.
 
There are some conflicts with TH Xpress addon. Getting following errors. Will be happy if you can fix it as soon as possible. Thanks for your support and interest @Lukas W.

Code:
ErrorException: [E_NOTICE] Undefined index: removeButtons src/addons/KL/EditorManager/Listener/Template/Editor.php:83

Stack trace
#0 src/addons/KL/EditorManager/Listener/Template/Editor.php(83): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/altikana/...', 83, Array)
#1 [internal function]: KL\EditorManager\Listener\Template\Editor::extend(Object(KL\UserImprovements\Template\Templater), 'public', 'editor', Array)
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF/App.php(2392): XF\Extension->fire('templater_templ...', Array, 'public:editor')
#4 src/XF/Template/Templater.php(1231): XF\App->fire('templater_templ...', Array, 'public:editor')
#5 /home/altikana/public_html/blog/wp-content/plugins/wp-xpress-plugin/src/XPress.php(891): XF\Template\Templater->renderTemplate('editor', Array)
#6 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/functions.php(805): XPress::getEditorInstance('comment_content', 'comment')
#7 /home/altikana/public_html/blog/wp-includes/class-wp-hook.php(286): {closure}('<p class="comme...')
#8 /home/altikana/public_html/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p class="comme...', Array)
#9 /home/altikana/public_html/blog/wp-includes/comment-template.php(2376): apply_filters('comment_form_fi...', '<p class="comme...')
#10 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/comments.php(147): comment_form(Array)
#11 /home/altikana/public_html/blog/wp-includes/comment-template.php(1474): require('/home/altikana/...')
#12 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/single.php(49): comments_template()
#13 /home/altikana/public_html/blog/wp-includes/template-loader.php(74): include('/home/altikana/...')
#14 /home/altikana/public_html/blog/wp-blog-header.php(19): require_once('/home/altikana/...')
#15 /home/altikana/public_html/blog/index.php(17): require('/home/altikana/...')
#16 {main}

Request state
array(4) {
  ["url"] => string(33) "/blog/2018/07/15/wp-article-test/"
  ["referrer"] => string(31) "https://www.altikanal.com/blog/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/addons/KL/EditorManager/Listener/Template/Editor.php:83

Stack trace
#0 src/addons/KL/EditorManager/Listener/Template/Editor.php(83): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/altikana/...', 83, Array)
#1 [internal function]: KL\EditorManager\Listener\Template\Editor::extend(Object(KL\UserImprovements\Template\Templater), 'public', 'editor', Array)
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF/App.php(2392): XF\Extension->fire('templater_templ...', Array, 'public:editor')
#4 src/XF/Template/Templater.php(1231): XF\App->fire('templater_templ...', Array, 'public:editor')
#5 /home/altikana/public_html/blog/wp-content/plugins/wp-xpress-plugin/src/XPress.php(891): XF\Template\Templater->renderTemplate('editor', Array)
#6 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/functions.php(805): XPress::getEditorInstance('comment_content', 'comment')
#7 /home/altikana/public_html/blog/wp-includes/class-wp-hook.php(286): {closure}('<p class="comme...')
#8 /home/altikana/public_html/blog/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p class="comme...', Array)
#9 /home/altikana/public_html/blog/wp-includes/comment-template.php(2376): apply_filters('comment_form_fi...', '<p class="comme...')
#10 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/comments.php(147): comment_form(Array)
#11 /home/altikana/public_html/blog/wp-includes/comment-template.php(1474): require('/home/altikana/...')
#12 /home/altikana/public_html/blog/wp-content/themes/wp-xpress-theme/single.php(49): comments_template()
#13 /home/altikana/public_html/blog/wp-includes/template-loader.php(74): include('/home/altikana/...')
#14 /home/altikana/public_html/blog/wp-blog-header.php(19): require_once('/home/altikana/...')
#15 /home/altikana/public_html/blog/index.php(17): require('/home/altikana/...')
#16 {main}

Request state
array(4) {
  ["url"] => string(33) "/blog/2018/07/15/wp-article-test/"
  ["referrer"] => string(31) "https://www.altikanal.com/blog/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Any news for Xpress bug @Lukas W. Waiting it for starting to use Xpress at my real site.
 
@Lukas W.
Seems that this is an addon issue :

Works fine on my dev and my live installation.
DfyR9os.png


Any news for Xpress bug @Lukas W. Waiting it for starting to use Xpress at my real site.
It's fixed with the next update.

We'll all waiting for the AJAX support, I know we know you can do it!
Got that finally done for the next update.
 
Top Bottom