Giter VIP home page Giter VIP logo

ace-widget's Introduction

LostInBrittany

Hello World ๐Ÿ‘‹

I'm Horacio, a Spaniard lost in Brittany (France).

For the last 6 years, I worked as Director of DevRel at OVHcloud. Now I am taking some weeks off before starting a new role.

I am also the co-founder and leader of the FinistDevs and @RdvSpeakers communities.

I love web development, and everything around Web Components and standards web in particular. I also love to discuss Kubernetes, AI and cloud in general.

I am a frequent speaker at conferences and meetups, you can find my speaker profile on Notist.

ace-widget's People

Contributors

benoitjchevalier avatar binbalenci avatar giwi avatar jhrdina avatar lostinbrittany avatar moritonal avatar mraerino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ace-widget's Issues

Getting random text in editor.

Hi,
This is Rohan. I had some doubt , I embedded ace-widget tag in polymer webpage. I am getting this text "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" in the editor.
Could you please let me know the source of error. Please find attachment.
Thanks,
Rohan.

screenshot 66
screenshot 67

Editor gets focused on value change

Hello,
I've run into a small issue with focus.

Editor gets focused everytime value attribute is changed from outside. I don't feel like this is a correct behavior. Imagine you want to use ace-widget only as a viewer. Anytime you edit value from some external textarea (or whatever), focus gets stolen by the ace-widget.

Getting Javascript error out of the box with no theme specified in tag

I get a JS error when theme is not set explicitly.

The theme needs the entire path (eg 'ace/theme/eclipse'), not just 'eclipse' as the current theme property default.

I recommend changing the default to 'ace/theme/eclipse', and make sure documentation is clear that a theme must be specified as per the underlying ace editor object.

Flag for debug output

Hi Horacio

Hope all's been well since the conference.

The element currently outputs a lot of debug info. It'd be nice to have a flag to control this behaviour.

Mode property cannot be changed dynamically

Mode property (highlighting language) cannot be changed dynamically after the element is attached. The changes are not reflected to the editor object, modeChanged() method is not called.

There is no observer tied to the mode property.

ace-widget doesn't work with true shadow-dom

The new tools from the Polymer team, like Polymer CLI use the true shadow-dom instead of shady-dom, by means of the setup of Polymer options:

  <script>
    // setup Polymer options
    window.Polymer = {lazyRegister: true, dom: 'shadow'};

    // load webcomponents polyfills
    (function() {
      if ('registerElement' in document
          && 'import' in document.createElement('link')
          && 'content' in document.createElement('template')) {
        // browser has web components
      } else {
        // polyfill web components
        var e = document.createElement('script');
        e.src = '/bower_components/webcomponentsjs/webcomponents-lite.min.js';
        document.head.appendChild(e);
      }
    })();
  </script>

ace-widget doesn't work when dom: 'shadow', I don't know still why...

Getting strange text in the editor

I am getting this value in the editor:
ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”ื”XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


I have the following code in JS:

var editor = ace.edit("editor");
editor.session.setMode("ace/mode/json")
        editor.setOptions({
            mode: "json",
            wrap: true,
        });

If I remove these lines, nothing is added in the editor. How can I solve this issue?

Polymer 3

I want to use the ace-widget component in another polymer 3 component.

Is a version for polymer 3 planned for ace-widget or already in progress?

Hook up observer methods to appropriate

The xyzChanged methods don't seem to be called because there are no observers defined for the properties (for example, valueChanged is never called so setting ace.value = 'xyz' does not update the editor).

Doesn't work with Polymer 2

There is a runtime error with Polymer 2 in ace-widget-shadow-dom

Polymer.StyleProperties does not exist.

Editor fails to show :(

There is no correct way how to style the inner editor container

You cannot easily get rid of the default grey border or style the inner editor in any way.

There should be a mixin that would allow user customize the appearance.

e.g.:

#editor {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  @apply(--ace-widget-editor);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.