Code

Discussion on Visual editor - A drupal 8.x page/block builder

drupalthemez

drupalthemez supports this item

Supported

42 comments found.

Hello,

we purchased your module and it is all working fine. But when we try to use 2 Content Fields with the Editor, it is not saving any changes made to one of the editors.

Is it possible to use 2 visual editors?

Hi,

We will get back to you on this with a patch.

Thank you.

Hi,

thanks for your feedback. We have to launch a project – so can you please tell us when you can provide us with this patch.

thanks

Hi,

If you are using version downloaded after 15th May, 2018, then apply patch given at following path

http://drupalthemez.com/patches/visual-editor-8.x-2.3-multiinstance.patch

Else use following:

http://drupalthemez.com/patches/visual-editor-8.x-2.2-multiinstance.patch
elicos

elicos Purchased

Hi,

I’ve installed your module and it works fine when I add rows and sections, but, adding “CssJs settings”, it doesn’t save this values. I think the problem is the js array of editor storage.

This is the browser console error:

Uncaught TypeError: Cannot read property ‘length’ of undefined at r.fn.init.$.fn.updateComponent (visual-editor.js?p96×38:352) at Drupal.AjaxCommands.invoke (ajax.js?v=8.5.3:575) at Drupal.Ajax.success (ajax.js?p96×38:155) at Object.success (ajax.js?v=8.5.3:226) at Object.t.success (jquery.form.min.js?v=3.51:11) at i (jquery.min.js?v=3.2.1:2) at Object.fireWith [as resolveWith] (jquery.min.js?v=3.2.1:2) at A (jquery.min.js?v=3.2.1:4)

Hi ! Does the visual editor work properly with Drupal 8.5.x? I am starting a new project for a University and I would like to use a stable page builder.

Hi,

Yes, Visual Editor works with Drupal 8.5.x.

Hello, i install the module and it works fine But when i try to put some animation on a rich text for example, it disappear i dont know what to do

Hi,

To make animation work element needs to reach to 50% of the viewport from top. If you want to change that behavior, edit visual-editor-front.js and on line number 61 change the offset percent.

Thanks for your answer, but it was at 50%, i try to change the value but either way it doesnt work :/

Animation of that component will depend on the position from the top. If it is a small and last element having lesser height that the offset set, it will not display.

idmeneo

idmeneo Purchased

Hi, Can’t make your module work. On the content page I get this error when I select “Visual Editor” :

visual-editor.js?pa61au:293 Uncaught TypeError: Cannot read property ‘key’ of null at Object.attach (visual-editor.js?pa61au:293) at Drupal.editorAttach (editor.js?v=8.5.4:152) at Object.success (editor.js?v=8.5.4:188) at i (jquery.min.js?v=3.2.1:2) at Object.fireWith [as resolveWith] (jquery.min.js?v=3.2.1:2) at A (jquery.min.js?v=3.2.1:4) at XMLHttpRequest.<anonymous> (jquery.min.js?v=3.2.1:4)

idmeneo

idmeneo Purchased

Main content HTML field. I de-installed most of the modules and still not working.

Hi,

Try adding gmap api key. That may resolve the issue. Steps are given in documentation.

idmeneo

idmeneo Purchased

YES ! It is working with the API key.Thx !

elicos

elicos Purchased

Hello,

we found a bug while trying to add a Fontawesome icon on a multilanguage site.

While trying to add the icon via the widget, in the console of the browser inspector we get the error GET http://sitename.local/enmodules/custom/visual_editor/js/json/fa.json 404 (Not Found)

As you can see, the path is incorrect as the “enmodule” part is wrong.

We found that in visual-editor.js on the line 382 var editorPath = Drupal.VisualEditor0.settings.basePath + Drupal.VisualEditor0.settings.editorPath;

the basePath doesn’t seem correct and it should enough something like var editorPath = ”/” + Drupal.VisualEditor0.settings.editorPath;

Anyway we’d like to ask an appropriate patch to fix this bug.

Moreover, it could be very useful to us if you could add two new functionalities regarding icons:

1) The support for Fontawesome 5 2) The possibility to add a link with a font icon without a Link Title

Thank you for your assistance.

Hi,

I have noted the issue mentioned by you and started work on patch.

For fontawesome you can directly add font awesome class instead of choosing it from icon list(Will update icons list).

You can add your own component by creating a component plugin. Given below is the link to see how it works:

http://drupalthemez.com/content/create-endless-components-visual-editor

If you need any help, please let me know.

Please find below a link to patch for mentioned issue:

http://www.drupalthemez.com/patches/visual-editor-8.x-2.5-2018-07-31.patch
elicos

elicos Purchased

Hi, I’ve found a bug: when using the ‘menu’ widget, if one of the link in the chosen menu is empty – in other words using ’#’ special char – it’s printed the following error: Notice: Undefined index: #attached in Drupal\visual_editor\Plugin\VisualEditorComponent\MenuComponent->render() (line 48 of modules/custom/visual_editor/src/Plugin/VisualEditorComponent/MenuComponent.php).

× ERROR MESSAGE

Hi,

I have noted the issue and will get back to you with a patch as soon as we resolve it.

Please check updated version for resolved issue

elicos

elicos Purchased

Hi,

I’ve found two possible bugs with Bootstrap 4:

1) Most serious: the editor use the col-xs-n (e.g. col-xs-12) syntax, but in Bootstrap 4 that class has been replaced with col-n (e.g. col-12). This cause major problem in layout in mobile.

2) When adding via the interface columns smaller than 12 – e.g. column 8-4, the columns are created with extra-small and extra-large breakpoint at size of 12 instead of the specified one.

Hi,

I have noted the issue and will get back to you with a patch as soon as we resolve it.

Please check updated version for resolved issue

elicos

elicos Purchased

Hi,

there are two possible bugs with the Image Carousel Plugin:

1) If one of the image present in the carousel is deleted from the system but not from the carousel – so for example via Content -> Files – the page with the carousel become inaccessible, and provide this error:

Error: Call to a member function getFileUri() on null in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageCarousel->render() (line 70 of modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageCarousel.php).

2) In the settings the options “Show indicators” and “Show controls” don’t work: if you de-check them and save, after re-entering in the page\plugin they are still selected

Hi,

I have noted the issue and will get back to you with a patch as soon as we resolve it.

Please check updated version for resolved issue

elicos

elicos Purchased

Hi,

I’d like to request a feature which it’s very common and important, at least for me, in building pages: the possibility to insert a row inside a column, in order to get a nested grid like described in https://getbootstrap.com/docs/4.0/layout/grid/#nesting

Thank you for the suggestion. We will brainstorm on the idea and get back to you with a possible solution.

elicos

elicos Purchased

Hi,

I’ve found another bug. This time is in relation with a contrib module, better_formats (https://www.drupal.org/project/better_formats) Better format allows to specify which formats are available on a field – I need it to use only Visual Editor in some fields.

However, in combination with Visual Editor there is this bug: I usually create my content on local test site, and after it is validated I copy the resulting json and paste in the text are of the new content in the real site. If that field has limited text formats (thanks better formats), after I paste the json and save the content, the text inside the field area is reverted to the last saved one (or empty one if the content is new).

In other words, it is impossible to export and import the content.

I can’t determine if this bug is due to Visual Editor module or Better Formats, I hope you can check this issue too.

Thanks for your support.

We will check it at our end and get back to you.

Hello, before buying your Visual editor module, I have a question. Is it possible to add a text over the image carousel? (the image as background and text over it).

Thank you,

Michel

Not as of now. But you can create custom component to achieve your requirements.

dburr

dburr Purchased

Hello, I have several questions about updating the visual editor module.

I currently have Visual Editor installed under /modules/visual_editor-8.x-2.1, so I guess I have version 8.x-2.1 installed. What is the latest version? And is that downloadable from Code Canyon? Do I have access to all upgrades of the module if I purchased it?

Also, I saw on your website the following installation instructions:

Upload libraries directory to drupal root directory Install as you would normally install a contributed Drupal module

My libraries folder insn’t in the root but instead under the visual editor folder, so it looks like this:

-modules —visual_editor-8.x-2.1 —-modules —-libraries

Is that a problem if the libraries is there instead of at the root? Everything seems to be working fine that way.

If there is an update, how do you update the module? The file that I downloaded from code canyon today after I extracted has a folder name of codecanyon-19859426-visual-editor-a-drupal-8x-page-builder.

What should be the folder name in the Drupal installation? Do I just copy the files into the existing folder name I am using which is visual_editor-8.x-2.1 or should the folder name under modules be visual_editor?

Thank you for your help!

The error could be related to Entity browser. I will try to reproduce the issue and get back to you if I find anything.

dburr

dburr Purchased

I’ve successfully upgraded all of my local sites. I now want to do the production sites. I’m getting a little kick back from my customers about doing the upgrade. They actually raised some good questions. If Visual Editor is updated again in the future will this type of issue come up again where the columns break and need to be rebuilt or was this just a one-time thing? It just doesn’t seem efficient to have to do that everytime an upgrade to Visual Editor is made. Also, what would be the ramifications if I didn’t do the upgrade and just kept the old version of Visual Editor?

Hi,

There are chances that we can have such upgrades because of addition of new features but not frequently and possibly with backward compatibility to reduce redevelopment efforts.

There will be no harm if you do not upgrade on production. The only problem with this will be, you will not be able to use new features.

Hello,

I am having problem with images in Rich Text using visual editor, When I upload image using WYSIWYG in Rich Text Component, after a day all images gets removed.

Prompt response would be appreciated.

Hello,

Thanks for providing the patch quickly, but it is giving below error in both patch files: fatal: corrupt patch at line 22

Hi,

I have updated patches at same links.

Hello,

I found another bug, when I use Rich Text Component and update the content using “Source” and then save the content, Visual Editor doesn’t save the updated content.

Below is the screencast for reference: https://screencast-o-matic.com/watch/cFj6otqj0v

Prompt response would be appreciated.

Any updates on the issue?

I was able to reproduce it. I will update you as soon as I resolves it.

I buy this module. and when install view error Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 184 of core/modules/views/src/Plugin/views/PluginBase.php). Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138) Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 102) Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 118) Drupal\views\Plugin\views\field\FieldPluginBase->init(Object, Object, Array) (Line: 895) Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers(‘field’) (Line: 546) Drupal\views\Entity\View->onDependencyRemoval(Array) (Line: 470) Drupal\Core\Config\ConfigManager->callOnDependencyRemoval(Object, Array, ‘module’, Array) (Line: 333) Drupal\Core\Config\ConfigManager->getConfigEntitiesToChangeOnDependencyRemoval(‘module’, Array) (Line: 43) Drupal\system\Form\ModulesUninstallConfirmForm->addDependencyListsToForm(Array, ‘module’, Array, Object, Object) (Line: 148) Drupal\system\Form\ModulesUninstallConfirmForm->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 518) Drupal\Core\Form\FormBuilder->retrieveForm(‘system_modules_uninstall_confirm_form’, Object) (Line: 275) Drupal\Core\Form\FormBuilder->buildForm(‘system_modules_uninstall_confirm_form’, Object) (Line: 74) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 184 of core/modules/views/src/Plugin/views/PluginBase.php). Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138) Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 102) Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 118) Drupal\views\Plugin\views\field\FieldPluginBase->init(Object, Object, Array) (Line: 895) Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers(‘field’) (Line: 546) Drupal\views\Entity\View->onDependencyRemoval(Array) (Line: 470) Drupal\Core\Config\ConfigManager->callOnDependencyRemoval(Object, Array, ‘module’, Array) (Line: 333) Drupal\Core\Config\ConfigManager->getConfigEntitiesToChangeOnDependencyRemoval(‘module’, Array) (Line: 43) Drupal\system\Form\ModulesUninstallConfirmForm->addDependencyListsToForm(Array, ‘module’, Array, Object, Object) (Line: 148) Drupal\system\Form\ModulesUninstallConfirmForm->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 518) Drupal\Core\Form\FormBuilder->retrieveForm(‘system_modules_uninstall_confirm_form’, Object) (Line: 275) Drupal\Core\Form\FormBuilder->buildForm(‘system_modules_uninstall_confirm_form’, Object) (Line: 74) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Hi,

Can you provide drupal 8.x version? Also is it coming on fresh drupal installation?

Yes, we are using fresh istalled drupal 8 http://www.dobrovidenie.ru/

Yes, we are using porto theme

Tell me about when to wait for an answer. It’s just a very urgent question for me.

I will Will try to update you within 24hrs. Can you provide subversion of drupal core?

Hi!

I’m having an error in the front when the user is not authenticated. It says:

Uncaught ReferenceError: Drupal is not defined at visual-editor-front.js?pea1vd:65

When I’m authenticated all works fine. This only happens when the user is not logged in.

Thanks for your support.

Hi!

Sorry I can’t share a link, I’m working in local. Yes I’ve cleared the cache multiple times using drush.

I don’t know if this will help, but my sistem information is this:

Drupal Version: 8.5.6 Web Server: nginx/1.14.0 PHP Version: 7.1.16-1+ubuntu18.04.1+deb.sury.org+1 (more information) Memory limit: 512M

Hi,

Please confirm if core/drupal library is available or not your theme. Visual editor front requires that library.

That was the error. I don’t know why, but if the user is logged in, core/drupal is available although is not a dependencie in the theme. Now I’ve seen it. Thanks for your help, now it works fine.

Hi,

After upgrading Drupal core to 8.6 several plugin shows a notice of ’ Undefined index’

It happens when: 1) Creating a new content 2) Adding a row, col and then a plugin. Some of the plugin showing a notice are: ‘image’, ‘block content’, ‘gmap’

This is the message for the ‘image’ plugin:

Notice: Undefined index: link in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->buildForm() (line 28 of /Applications/MAMP/htdocs/mysite.it/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php) #0 /Applications/MAMP/htdocs/mysite.it/core/includes/bootstrap.inc(584): _drupal_error_handler_real(8, ‘Undefined index…’, ’/Applications/M…’, 28, Array) #1 /Applications/MAMP/htdocs/mysite.it/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php(28): _drupal_error_handler(8, ‘Undefined index…’, ’/Applications/M…’, 28, Array) #2 /Applications/MAMP/htdocs/mysite.it/modules/custom/visual_editor/src/Form/ComponentForm.php(149): Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->buildForm(Array, Object(Drupal\Core\Form\FormState), Array) #3 [internal function]: Drupal\visual_editor\Form\ComponentForm->buildForm(Array, Object(Drupal\Core\Form\FormState), Array) #4 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/Form/FormBuilder.php(518): call_user_func_array(Array, Array) #5 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/Form/FormBuilder.php(275): Drupal\Core\Form\FormBuilder->retrieveForm(‘visual_editor_c…’, Object(Drupal\Core\Form\FormState)) #6 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/Form/FormBuilder.php(216): Drupal\Core\Form\FormBuilder->buildForm(‘visual_editor_c…’, Object(Drupal\Core\Form\FormState)) #7 /Applications/MAMP/htdocs/mysite.it/modules/custom/visual_editor/src/Controller/ComponentController.php(56): Drupal\Core\Form\FormBuilder->getForm(‘Drupal\\visual_e…’, ‘{id”,”...’) #8 [internal function]: Drupal\visual_editor\Controller\ComponentController->content(Object(Symfony\Component\HttpFoundation\Request), ‘ajax’) #9 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #10 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #11 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #12 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #13 /Applications/MAMP/htdocs/mysite.it/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /Applications/MAMP/htdocs/mysite.it/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #15 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /Applications/MAMP/htdocs/mysite.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /Applications/MAMP/htdocs/mysite.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /Applications/MAMP/htdocs/mysite.it/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /Applications/MAMP/htdocs/mysite.it/core/lib/Drupal/Core/DrupalKernel.php(665): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /Applications/MAMP/htdocs/mysite.it/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #24 {main}.

Hi,

I will update you on this after testing and resolving the issues.

Uttam007

Uttam007 Purchased

Hello,

I am facing a character limit issue in Heading widget, please have a at the screenshot and provide the fix to increase the limit: http://prntscr.com/kyg2x7

Thanks

Hi,

Please change your heading element type from text field to textarea.

Use patch given at link below to do the same:

http://drupalthemez.com/patches/visual-editor-8.x-2.6-2018-09-25-HeaderComponentCharacterLimit.patch
by
by
by
by
by
by