Topic Closed
mahotilo
24 Posts

ShowAllAchors 1.0 needs update for TS 5.2.

I have used your trick from Responsive Image to fix the plugin but can't send you a PR.

  public static function PageRunScript($cmd) {
    global $page, $dirPrefix;
    if( \gp\tool::LoggedIn() ){
      $ckeditor_basepath = (version_compare(gpversion, '5.1') > 0) ?
       \gp\tool::GetDir('/include/thirdparty/ckeditor/') :
       \gp\tool::GetDir('/include/thirdparty/ckeditor_34/');

...

          background: url(' . $dirPrefix . $ckeditor_basepath . 'plugins/link/images/anchor.png) no-repeat left center;

 

UPD

FYI. I have also changed style of marker to have less influence on the layout of the page.

 <style>
        body.showAllAnchors .GPAREA a[id]::before,
        body.showAllAnchors .GPAREA a[name]::before {
          content: "";
          background: url(' . $dirPrefix . $ckeditor_basepath . 'plugins/link/images/anchor.png) no-repeat left top, #0000ff33;
          border: 1px dotted #0000ff;
          z-index: 10;
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0.6;
        } 

Edited: 3 months ago#11662

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

Thanks. I added the compatibility fix and put it on GitHub

position: absolute;
top: 0;
left: 0;

This will only work inside a non-position-static context

 

Edited: 3 months ago#11673

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register